db_cap.h File Reference

Data structures that represents capabilities in the database. More...

This graph shows which files directly or indirectly include this file:

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...


Detailed Description

Data structures that represents capabilities in the database.

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 Documentation

#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().


Typedef Documentation

typedef enum db_cap db_cap_t

Represents the capabilities that a database driver supports.


Enumeration Type Documentation

enum db_cap

Represents the capabilities that a database driver supports.

Enumerator:
DB_CAP_QUERY  driver can perform queries
DB_CAP_RAW_QUERY  driver can perform raw queries
DB_CAP_INSERT  driver can insert data
DB_CAP_DELETE  driver can delete data
DB_CAP_UPDATE  driver can update data
DB_CAP_REPLACE  driver can replace (also known as INSERT OR UPDATE) data
DB_CAP_FETCH  driver supports fetch result queries
DB_CAP_LAST_INSERTED_ID  driver can return the ID of the last insert operation
DB_CAP_INSERT_UPDATE  driver can insert data into database and update on duplicate

Definition at line 41 of file db_cap.h.


Generated on Mon May 21 18:00:38 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6