DB: The Kamailio generic database interface


Files

file  db/db.c
 Generic Database Interface.
file  db/db.h
 Generic Database Interface.
file  db_cap.h
 Data structures that represents capabilities in the database.
file  db_carrierroute.c
 Database support for modules.
file  db_carrierroute.h
 Database support for modules.
file  db_con.h
 Type that represents a database connection.
file  db_id.c
 Functions for parsing a database URL and work with db identifier.
file  db_id.h
 Functions for parsing a database URL and works with db identifier.
file  db_key.h
 Type that represents a database key.
file  db_op.h
 Type that represents a expression operator.
file  db_pool.c
 Functions for managing a pool of database connections.
file  db_pool.h
 Functions for managing a pool of database connections.
file  db_query.c
 Query helper for database drivers

This helper methods for database queries are used from the database SQL driver to do the actual work. Each function uses some functions from the actual driver with function pointers to the concrete, specific implementation.

file  db_query.h
 Query helper for database drivers

This helper methods for database queries are used from the database SQL driver to do the actual work. Each function uses some functions from the actual driver with function pointers to the concrete, specific implementation.

file  db_res.c
 Functions to manage result structures

Provides some convenience macros and some memory management functions for result structures.

file  db_res.h
 Data structure that represents a result from a query.
file  db_row.c
 Type that represents a row in a database.
file  db_row.h
 Type that represents a row in a database.
file  db_userblacklist.c
 Database support for modules.
file  db_userblacklist.h
 Database support for modules.
file  db_ut.c
 Utility functions for database drivers.
file  db_ut.h
 Utility functions for database drivers.
file  db_val.h
 Data structures that represents values in the database.

Detailed Description

This is a generic database interface for modules that need to utilize a database. The interface should be used by all modules that access database. The interface will be independent of the underlying database server. Notes: If possible, use the predefined macros if you need to access any structure attributes. For additional description, see the comments in the sources of mysql module.

If you want to see more complicated examples of how the API could be used, take a look at the sources of the usrloc or auth modules.

Implemented modules


Generated on Thu Feb 9 08:01:23 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6