cp_data_source_get_connection(3)

cp_dbms(3) cp_dbms cp_dbms(3)

NAME

cp_data_source_get_connection - obtain a database connection from a connection factory

SYNOPSIS

#include <cprops/db.h>

cp_db_connection * cp_data_source_get_connection(cp_data_source *data_source);

DESCRIPTION

cp_data_source_get_connection opens a new connection with the parameters specified in the creation of the connection factory data_source.

RETURN VALUE

a cp_db_connection structure representing the newly created connection on success or NULL on failure.

MARCH 2006 libcprops