cp_db_connection_prepare_statement(3) - Linux man page
Name
cp_db_connection_prepare_statement - create a prepared statement
Synopsis
#include <cprops/db.h>
cp_db_statement *
- cp_db_connection_prepare_statement(cp_db_connection *connection,
int prm_count, cp_field_type *prm_types, char *query);
Description
cp_db_connection_prepare_statement creates a prepared statement with prm_count parameters of the types given by prm_types for the query query on the connection connection. Parameters are specified as '?' in the query string; implementations may support other formats in addition. See cp_db_connection_select(3) for a list of the parameter types that may be used in the prm_type parameter type specification vector.
Return Value
a cp_db_statement representing the prepared statement on success or NULL on failure.
See Also
cp_db_statement_set_binary(3), cp_db_connection_execute_statement(3), cp_db_connection_close_statement(3)