|
Apache HTTPD
|
Macros | |
| #define | APR_DBD_TRANSACTION_COMMIT 0x00 |
| #define | APR_DBD_TRANSACTION_ROLLBACK 0x01 |
| #define | APR_DBD_TRANSACTION_IGNORE_ERRORS 0x02 |
| #define APR_DBD_TRANSACTION_COMMIT 0x00 |
| #define APR_DBD_TRANSACTION_IGNORE_ERRORS 0x02 |
| #define APR_DBD_TRANSACTION_ROLLBACK 0x01 |
Mapping of C to SQL types, used for prepared statements.
| apr_pool_t apr_dbd_t int apr_dbd_prepared_t apr_pool_t apr_dbd_t apr_dbd_results_t apr_dbd_prepared_t int APU_DECLARE | ( | apr_status_t | ) |
apr_dbd_init: perform once-only initialisation. Call once only.
| pool | - pool to register any shutdown cleanups, etc |
apr_dbd_get_driver: get the driver struct for a name
| pool | - (process) pool to register cleanup |
| name | - driver name |
| driver | - pointer to driver struct. |
apr_dbd_open_ex: open a connection to a backend
| driver | - driver struct. |
| pool | - working pool |
| params | - arguments to driver (implementation-dependent) |
| handle | - pointer to handle to return |
| error | - descriptive error. |
apr_dbd_open: open a connection to a backend
| driver | - driver struct. |
| pool | - working pool |
| params | - arguments to driver (implementation-dependent) |
| handle | - pointer to handle to return |
apr_dbd_close: close a connection to a backend
| driver | - driver struct. |
| handle | - handle to close |
check_conn: check status of a database connection
| driver | - the driver |
| pool | - working pool |
| handle | - the connection to check |
apr_dbd_set_dbname: select database name. May be a no-op if not supported.
| driver | - the driver |
| pool | - working pool |
| handle | - the connection |
| name | - the database to select |
apr_dbd_transaction_start: start a transaction. May be a no-op.
| driver | - the driver |
| pool | - a pool to use for error messages (if any). |
| handle | - the db connection |
| trans | - ptr to a transaction. May be null on entry |
apr_dbd_transaction_end: end a transaction (commit on success, rollback on error). May be a no-op.
| driver | - the driver |
| handle | - the db connection |
| trans | - the transaction. |
apr_dbd_transaction_mode_get: get the mode of transaction
| driver | - the driver |
| trans | - the transaction |
apr_dbd_transaction_mode_set: set the mode of transaction
| driver | - the driver |
| trans | - the transaction |
| mode | - new mode of the transaction |
apr_dbd_query: execute an SQL query that doesn't return a result set
| driver | - the driver |
| handle | - the connection |
| nrows | - number of rows affected. |
| statement | - the SQL statement to execute |
apr_dbd_select: execute an SQL query that returns a result set
| driver | - the driver |
| pool | - pool to allocate the result set |
| handle | - the connection |
| res | - pointer to result set pointer. May point to NULL on entry |
| statement | - the SQL statement to execute |
| random | - 1 to support random access to results (seek any row); 0 to support only looping through results in order (async access - faster) |
apr_dbd_num_cols: get the number of columns in a results set
| driver | - the driver |
| res | - result set. |
apr_dbd_num_tuples: get the number of rows in a results set of a synchronous select
| driver | - the driver |
| res | - result set. |
apr_dbd_get_row: get a row from a result set
| driver | - the driver |
| pool | - pool to allocate the row |
| res | - result set pointer |
| row | - pointer to row pointer. May point to NULL on entry |
| rownum | - row number (counting from 1), or -1 for "next row". Ignored if random access is not supported. |
apr_dbd_prepare: prepare a statement
| driver | - the driver |
| pool | - pool to alloc the result from |
| handle | - the connection |
| query | - the SQL query |
| label | - A label for the prepared statement. use NULL for temporary prepared statements (eg within a Request in httpd) |
| statement | - statement to prepare. May point to null on entry. |
apr_dbd_pquery: query using a prepared statement + args
| driver | - the driver |
| pool | - working pool |
| handle | - the connection |
| nrows | - number of rows affected. |
| statement | - the prepared statement to execute |
| nargs | - ignored (for backward compatibility only) |
| args | - args to prepared statement |
apr_dbd_pselect: select using a prepared statement + args
| driver | - the driver |
| pool | - working pool |
| handle | - the connection |
| res | - pointer to query results. May point to NULL on entry |
| statement | - the prepared statement to execute |
| random | - Whether to support random-access to results |
| nargs | - ignored (for backward compatibility only) |
| args | - args to prepared statement |
apr_dbd_pbquery: query using a prepared statement + binary args
| driver | - the driver |
| pool | - working pool |
| handle | - the connection |
| nrows | - number of rows affected. |
| statement | - the prepared statement to execute |
| args | - binary args to prepared statement |
apr_dbd_pbselect: select using a prepared statement + binary args
| driver | - the driver |
| pool | - working pool |
| handle | - the connection |
| res | - pointer to query results. May point to NULL on entry |
| statement | - the prepared statement to execute |
| random | - Whether to support random-access to results |
| args | - binary args to prepared statement |
apr_dbd_datum_get: get a binary entry from a row
| driver | - the driver |
| row | - row pointer |
| col | - entry number |
| type | - type of data to get |
| data | - pointer to data, allocated by the caller |
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Replace
< Insert with duplicates
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< mask to extract lock type
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
< Size of the file
< Shared lock. More than one process or thread can hold a shared lock at any given time. Essentially, this is a "read lock", preventing writers from establishing an exclusive lock.
< Exclusive lock. Only one process may hold an exclusive lock at any given time. This is analogous to a "write lock".
Definition at line 358 of file apr_brigade.c.
apr_dbd_name: get the name of the driver
| driver | - the driver |
apr_dbd_get_entry: get an entry from a row
| driver | - the driver |
| row | - row pointer |
| col | - entry number |
apr_dbd_get_name: get an entry name from a result set
| driver | - the driver |
| res | - result set pointer |
| col | - entry number |
apr_dbd_error: get current error message (if any)
| driver | - the driver |
| handle | - the connection |
| errnum | - error code from operation that returned an error |
apr_dbd_escape: escape a string so it is safe for use in query/select
| driver | - the driver |
| pool | - pool to alloc the result from |
| string | - the string to escape |
| handle | - the connection |
| APU_DECLARE | ( | void * | ) | const |
apr_dbd_native_handle: get native database handle of the underlying db
| driver | - the driver |
| handle | - apr_dbd handle |
| apr_pool_t apr_dbd_t int apr_dbd_prepared_t APU_DECLARE_NONSTD | ( | int | ) | const |
apr_dbd_pvquery: query using a prepared statement + args
| driver | - the driver |
| pool | - working pool |
| handle | - the connection |
| nrows | - number of rows affected. |
| statement | - the prepared statement to execute |
| ... | - varargs list |
apr_dbd_pvselect: select using a prepared statement + args
| driver | - the driver |
| pool | - working pool |
| handle | - the connection |
| res | - pointer to query results. May point to NULL on entry |
| statement | - the prepared statement to execute |
| random | - Whether to support random-access to results |
| ... | - varargs list |
apr_dbd_pvbquery: query using a prepared statement + binary args
| driver | - the driver |
| pool | - working pool |
| handle | - the connection |
| nrows | - number of rows affected. |
| statement | - the prepared statement to execute |
| ... | - varargs list of binary args |
apr_dbd_pvbselect: select using a prepared statement + binary args
| driver | - the driver |
| pool | - working pool |
| handle | - the connection |
| res | - pointer to query results. May point to NULL on entry |
| statement | - the prepared statement to execute |
| random | - Whether to support random-access to results |
| ... | - varargs list of binary args |
| apr_pool_t apr_dbd_t apr_dbd_results_t apr_dbd_prepared_t int const void ** args |
| apr_dbd_transaction_t int mode |
| apr_pool_t apr_dbd_t int * nrows |
| apr_pool_t const char * params |
| apr_pool_t const char* string |
| apr_dbd_transaction_t * trans |