Typedefs | |
typedef apr_int32_t | sul_key_t |
typedef sul_dbc_t | sul_dbc_t |
typedef sul_dbr_t | sul_dbr_t |
Functions | |
sul_dbc_create (sul_dbc_t **self, const char *dbname, const char *user, const char *passwd, apr_pool_t *pool) | |
sul_dbc_close (sul_dbc_t *dbc) | |
sul_dbc_update (sul_dbc_t *dbc, apr_pool_t *pool, const char *sql) | |
sul_dbc_updatef (sul_dbc_t *dbc, apr_pool_t *pool, const char *f,...) | |
sul_dbc_query (sul_dbr_t **resp, sul_dbc_t *dbc, apr_pool_t *pool, const char *sql) | |
sul_dbc_queryf (sul_dbr_t **resp, sul_dbc_t *dbc, apr_pool_t *pool, const char *f,...) | |
sul_dbc_refs_read (sul_dbc_t *dbc) | |
sul_dbc_refs_inc (sul_dbc_t *dbc) | |
sul_dbc_refs_dec (sul_dbc_t *dbc) | |
sul_dbc_owner_set_thread (sul_dbc_t *dbc) | |
sul_dbc_owner_set_none (sul_dbc_t *dbc) | |
sul_dbc_begin (sul_dbc_t *dbc) | |
sul_dbc_end (sul_dbc_t *dbc) | |
sul_dbc_rollback (sul_dbc_t *dbc) | |
sul_dbc_primary_key (sul_dbc_t *dbc, const char *serial, apr_pool_t *pool) | |
sul_dbc_query_key (sul_dbc_t *dbc, const char *sql, apr_pool_t *pool) | |
sul_dbr_number_rows (sul_dbr_t *res) | |
sul_dbr_number_fields (sul_dbr_t *res) | |
sul_dbr_field_value_by_index (sul_dbr_t *res, apr_ssize_t row, apr_ssize_t index) | |
sul_dbr_field_value_by_name (sul_dbr_t *res, apr_ssize_t row, const char *name) | |
sul_dbc_escape (const char *str, apr_pool_t *pool) |
|
Opaque database connection structure. Used to execute queries and communicate with the database. |
|
Opaque database results structure for representing the data returned by a query of some kind. |
|
Unique identifier of a row/object in the database, our primary key type. |
|
Begins a new transaction.
|
|
Closes and frees up an existing database connection.
|
|
Create a new Database Connection.
|
|
Ends the transaction and writes all the changes to the database.
|
|
Escapes a string suitable for use in an SQL query. Any character that requires escaping will be replaced with the proper sequence so that the resulting string can be used in SQL and not generate any errors.
|
|
Assigns the owner of a connection to None, so it's orphaned. In order to use a thread there MUST be an owner. This is for threads that are in a pool waiting for owners.
|
|
Sets the connections owner to the active thread. Owners may only be changed on orphaned connections.
|
|
Retrieves the value of a tables Primary Key, usually after a manipulation of some kind.
|
|
Executse an SQL query over a database connection and returns the resulting rows of that query.
|
|
Queries for a key using the given SQL query. If no rows are returned then 0 is returned.
|
|
Executse an SQL query over a database connection and returns the resulting rows of that query.
|
|
Decrease the DBC's reference counter.
|
|
Increase the DBC's reference counter.
|
|
Increase the DBC's reference counter.
|
|
Roll back the transaction currently being processed.
|
|
Executse an SQL query over a database connection and returns the resulting rows of that query.
|
|
Executse an SQL query over a database connection and returns the resulting rows of that query.
|
|
Returns the value of the field at the given index.
|
|
Returns the value of the field in the column with the given name.
|
|
Returns the number of fields (columns) in returned by the database.
|
|
Returns the number of rows in returned by the database.
|