Has anybody started on support for Postgres?
I've checked out the layering and it seems to be a fairly modular project. I haven't coded in C for quite some time, but I think I can handle it. Any hints? Should I even try?
The only thing I can see having problems with is the build/configure system. How do I hook in a new module? How are include directories and new libraries added? I was pretty good with make, gmake, imake in my day but I can't seem to find the head of the Make tree!
---greg Greg Fausak
Hi Greg,
On Thursday 27 February 2003 21:15, Greg Fausak wrote:
Has anybody started on support for Postgres?
I'm not aware of any.
I've checked out the layering and it seems to be a fairly modular project. I haven't coded in C for quite some time, but I think I can handle it. Any hints? Should I even try?
I think the DB interface should be clean enough. So give it a try. If you encounter any problem just ask.
The only thing I can see having problems with is the build/configure system. How do I hook in a new module? How are include directories and new libraries added? I was pretty good with make, gmake, imake in my day but I can't seem to find the head of the Make tree!
Just create a new directory in modules Directory and copy a Makefile from the other modules (mysql for example) and change the NAME parameter within this Makefile. Then your new module will be build automaticly on 'make all' or 'make modules'.
Greetings Nils
At 09:15 PM 2/27/2003, Greg Fausak wrote:
Has anybody started on support for Postgres?
I am not aware.
I've checked out the layering and it seems to be a fairly modular project. I haven't coded in C for quite some time, but I think I can handle it. Any hints? Should I even try?
That would be way great.
The only thing I can see having problems with is the build/configure system. How do I hook in a new module?
create a directory, copy some other module's Makefile in it and that's it. (modules/mysql/Makefile is a good example which links to external libs) The main Makefile will find it.
-Jiri
Hello,
On 27-02 14:15, Greg Fausak wrote:
Has anybody started on support for Postgres?
AFAIK no.
I've checked out the layering and it seems to be a fairly modular project. I haven't coded in C for quite some time, but I think I can handle it. Any hints? Should I even try?
Yes please, if you have enough cycles to write postgres support, please do it. I am the author of the database API, so don't hesitate to ask if you need any help.
Probably the best way to start would be looking at mysql and dbtext modules, both of them implement the API. Please use the latest CVS snapshot for the development.
Complete documentation of the API can be found in sip_router/db/db-api.txt or in Ser Developer's guide.
The only thing I can see having problems with is the build/configure system. How do I hook in a new module? How are include directories and new libraries added? I was pretty good with make, gmake, imake in my day but I can't seem to find the head of the Make tree!
Grab a CVS snapshot, create a new directory in sip_router/modules, for example sip_router/modules/postgres, copy Makefile from sip_router/modules/mysql and replace mysql libraries with postgres libraries in the Makefile.
let me know if you have any questions, postgres support would be very useful, but currently we have no manpower for that. It would be great if you could help.
regards, Jan.
Greg,
to help yo do the first step, I created a module skeleton for you. Enclosed please find postgres.tar.gz, untar this file to sip_router/modules, it will create a new directory - postgres and some skeleton files.
Get yourself familiar with the code and look for /* WRITE ME */ comments, this is where you need write your code. You will also need to modify Makefile and replate mysql with postgres libraries.
regards, Jan.
On 27-02 14:15, Greg Fausak wrote:
Has anybody started on support for Postgres?
I've checked out the layering and it seems to be a fairly modular project. I haven't coded in C for quite some time, but I think I can handle it. Any hints? Should I even try?
The only thing I can see having problems with is the build/configure system. How do I hook in a new module? How are include directories and new libraries added? I was pretty good with make, gmake, imake in my day but I can't seem to find the head of the Make tree!
---greg Greg Fausak
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers