
Go to the source code of this file.
Defines | |
| #define | DB_CAP_ALL (DB_CAP_QUERY | DB_CAP_INSERT | DB_CAP_DELETE | DB_CAP_UPDATE) |
| All database capabilities except raw_query, replace, insert_update and last_inserted_id which should be checked separately when needed. | |
| #define | DB_CAPABILITY(dbf, cpv) (((dbf).cap & (cpv)) == (cpv)) |
| Returns true if all the capabilities in cpv are supported by module represented by dbf, false otherwise. | |
Typedefs | |
| typedef enum db_cap | db_cap_t |
| Represents the capabilities that a database driver supports. | |
Enumerations | |
| enum | db_cap { DB_CAP_QUERY = 1 << 0, DB_CAP_RAW_QUERY = 1 << 1, DB_CAP_INSERT = 1 << 2, DB_CAP_DELETE = 1 << 3, DB_CAP_UPDATE = 1 << 4, DB_CAP_REPLACE = 1 << 5, DB_CAP_FETCH = 1 << 6, DB_CAP_LAST_INSERTED_ID = 1 << 7, DB_CAP_INSERT_UPDATE = 1 << 8 } |
| Represents the capabilities that a database driver supports. More... | |
This file defines data structures that represents certain database capabilities. It also provides some macros for convenient access to this values.
Definition in file db_cap.h.
| #define DB_CAP_ALL (DB_CAP_QUERY | DB_CAP_INSERT | DB_CAP_DELETE | DB_CAP_UPDATE) |
All database capabilities except raw_query, replace, insert_update and last_inserted_id which should be checked separately when needed.
Definition at line 59 of file db_cap.h.
Referenced by avpops_db_bind(), cpl_db_bind(), and mod_init().
| #define DB_CAPABILITY | ( | dbf, | |||
| cpv | ) | (((dbf).cap & (cpv)) == (cpv)) |
Returns true if all the capabilities in cpv are supported by module represented by dbf, false otherwise.
Definition at line 66 of file db_cap.h.
Referenced by avpops_db_bind(), cpl_db_bind(), dp_load_db(), group_db_bind(), init_addresses(), init_trusted(), lcr_db_bind(), load_dialog_info_from_db(), load_route_data_db(), mod_init(), pdt_load_db(), preload_udomain(), reload_gws_and_lcrs(), select_entire_dialog_table(), and uridb_db_bind().
| enum db_cap |
Represents the capabilities that a database driver supports.
1.5.6