473,324 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

PostgreeSQL C header files

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 ma*******@postgresql.org)

Nov 12 '05 #1
3 3416
On Tue, Dec 23, 2003 at 09:58:39PM +0100, Christian Kienle wrote:
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?
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.
(I have already searched the PostgreeSQL hp and looked throw the documentation
- I found nothing ;(( )


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

Nov 12 '05 #2
> 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.


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 ma*******@postgresql.org)

Nov 12 '05 #3
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:
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.


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 ma*******@postgresql.org)


--
joe speigle

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

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dharmesh Gupta | last post by:
Hi All, i am new to header files , and have a basic question , i have made my program in three files namely, idr_bpl.cpp( contains class definitions and function definitions) bpl.cpp(...
3
by: Chris Mantoulidis | last post by:
Seperate compilation (that's what it's called, right?) seems to be quite popular, so I decided to get some info about it, and (d'oh) use it... But it's whole structure seems weird to me... ...
21
by: Hattuari | last post by:
I'm learning C++ after having spent several years in the computer industry doing both system administration and engineering. I've written code in Perl, Bash, Pascal, Ada, C, Mathematica (hundreds...
16
by: matthurne | last post by:
I just started learning C++ on my own...I'm using Accelerated C++. Something it hasn't explained and I keep wondering about is how header files actually work. I suspect it doesn't get into it...
11
by: Steven T. Hatton | last post by:
In the past there have been lengthy discussiions regarding the role of header files in C++. People have been very adamat about header files serving as in interface to the implementation. I do...
3
by: pooja | last post by:
Suppose i have created a class c1 with f1()in c1.cpp and included this c1.cpp in file1.cpp file , which is also having main() by giving the statement #include "c1.cpp". the same i can do by...
1
by: Christian Kienle | last post by:
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...
11
by: ambika | last post by:
Iam just trying to know "c". And I have a small doubt about these header files. The header files just contain the declaration part...Where is the definition for these declarations written??And how...
18
by: John Smith | last post by:
Hi all What does the group think of the practise of including one header file from inside another? I have some legacy code where this has been done, and it creates a dependency on a module...
9
by: chat | last post by:
Hi, every body. I have 3 files like this: -------------------------------------------------------- file name : header.h #ifndef TEST_H #define TEST_H int a=1; double b=0.5;
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.