cp_postgres_data_source(3) - Linux man page
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.
- For more on these options, see the postgres libpq documentation.
See Also
cp_dbms_get_data_source(3), cp_dbms_get_data_source_prm(3)