July 2005
Intermediate to advanced
1032 pages
27h 10m
English
If you have read the previous three chapters, you know that there are two schemes for managing PostgreSQL connections.
In libpq and ODBC, you ask the API to create a connection object (a handle) and then your application keeps track of the connection. When you need to interact with the database, you call an API function and pass the connection object to the API. When you are finished interacting with the database, you ask the API to tear down the connection and destroy the connection object. When you use libpgeasy, the API keeps track of the connection object for you. You still have to ask the API to create a connection and, when you are finished, you must ask the API to tear down the connection, but libpgeasy ...
Read now
Unlock full access