cp_dbms

Section: cp_dbms (3)
Updated: MARCH 2006
Index Return to Main Contents
 

NAME

cp_db_postgres, cp_postgres_data_source - cp_dbms postgres driver  

SYNOPSIS

#include <cprops/db.h>
#include <cprops/db_postgres.h>

cp_data_source *
      cp_postgres_data_source(char *host,
                              int port,
                              char *login,
                              char *password,
                              char *db_name,
                              char *options,
                              char *sslmode,
                              char *krbsrvname,
                              char *service);  

DESCRIPTION

If configured --with-postgres, cprops provides a driver to access PostgresQL databases through the cp_dbms api. To use this api, create a data source with postgres as the driver name.

In addition to the basic connection parameters, the postgres driver recognizes the following parameters if inserted as keys on the prm table parameter to cp_dbms_get_data_source_prm(3):

options    --  Command-line options to be sent to the server. 
sslmode    --  determines whether or with what priority an SSL connection will 
               be negotiated with the server. 
krbsrvname --  Kerberos service name to use when authenticating with Kerberos 5.
service    --  Service name to use for additional parameters. 

For more on these options, see the postgres libpq documentation.

If cprops was configured to link cp_dbms drivers statically, the postgres driver need not be loaded dynamically and cp_postgres_data_source may be called directly to obtain connections.  

SEE ALSO

cp_dbms_get_data_source(3), cp_dbms_get_data_source_prm(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 22:48:28 GMT, April 10, 2006
SourceForge.net Logo