Connecting Tech Pros Worldwide Forums | Help | Site Map

PostgreeSQL C header files

Christian Kienle
Guest
 
Posts: n/a
#1: Nov 12 '05
Hello,

at the moment I try to write a little CGI library written in C++. I want offer
a PostgreeSQL interface for all the user of my CGI library.
Is there any book or a good documentation how I use the C headerfiles Postgree
SQL hopefully offers?

I know, that Postgree SQL is written with C - so there should be C header
files - and perhaps there are C++ header files too.

With headerfiles I mean C/C++ functions/classes, which provide an easy use.

Thank you very much.

Christian Kienle
(I have already searched the PostgreeSQL hp and looked throw the documentation
- I found nothing ;(( )

--
Linux is like a wigwam - no gates, no windows and an apache inside.


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)


Michael Fuhr
Guest
 
Posts: n/a
#2: Nov 12 '05

re: PostgreeSQL C header files


On Tue, Dec 23, 2003 at 09:58:39PM +0100, Christian Kienle wrote:[color=blue]
> at the moment I try to write a little CGI library written in C++. I want offer
> a PostgreeSQL interface for all the user of my CGI library.
> Is there any book or a good documentation how I use the C headerfiles Postgree
> SQL hopefully offers?[/color]

See the "Client Interfaces" and possibly the "Server Programming"
sections in the PostgreSQL manual:

http://www.postgresql.org/docs/curre...nterfaces.html
http://www.postgresql.org/docs/curre...ogramming.html

The examples in the contrib directory of the source distribution might
also be helpful.
[color=blue]
> (I have already searched the PostgreeSQL hp and looked throw the documentation
> - I found nothing ;(( )[/color]

What info are you looking for that isn't covered in the manual sections
mentioned above?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Christian Kienle
Guest
 
Posts: n/a
#3: Nov 12 '05

re: PostgreeSQL C header files


> See the "Client Interfaces" and possibly the "Server Programming"[color=blue]
> sections in the PostgreSQL manual:
> http://www.postgresql.org/docs/curre...nterfaces.html
> http://www.postgresql.org/docs/curre...ogramming.html
> The examples in the contrib directory of the source distribution might
> also be helpful.[/color]

Thank you very much.





--
Linux is like a wigwam - no gates, no windows and an apache inside.


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

joseph speigle
Guest
 
Posts: n/a
#4: Nov 12 '05

re: PostgreeSQL C header files


hi,

I have done work on sourceforge for my c++ cgi library. It is at http://sourceforge.net/projects/cgiutils2/

It is built up of 3 separate libraries, the cgi library which parses post requests and gets form values and such, a session library, and a template library which uses a custom parser. The first and last don't need any data storage. For sessions, it doesn't use a postgresql backend, becase it uses mmap and semaphores for memory management of sessions. I am in the process of adding mysql and postgresql c++ library code and configure switches to allow the user to store session information in the databases, however, instead of in unix memory.

I have a website which exclusively generates all content from the cgi c++ library (it uses the cgi c++ library to do sessions, templates and form processing) and it is http://www.myowndictionary.com/. That client uses postgresql c++ library off gborg which is libpqxx. Source for the client is http://www.sirfsup.com/languages/cPP/lcgi/decoy.htm

Libpqxx has docs of its own but lots of it reproduces what's in libpq docs as it's just a c++ wrapper with classes methods and calls and such for the C code.

I am always looking for developers to help with the sourceforge project, if you want you could write the libpqxx class for the sessions or something.

On Wed, Dec 24, 2003 at 11:06:21AM +0100, Christian Kienle wrote:[color=blue][color=green]
> > See the "Client Interfaces" and possibly the "Server Programming"
> > sections in the PostgreSQL manual:
> > http://www.postgresql.org/docs/curre...nterfaces.html
> > http://www.postgresql.org/docs/curre...ogramming.html
> > The examples in the contrib directory of the source distribution might
> > also be helpful.[/color]
>
> Thank you very much.
>
>
>
>
>
> --
> Linux is like a wigwam - no gates, no windows and an apache inside.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)[/color]

--
joe speigle

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Closed Thread


Similar PostgreSQL Database bytes