|
libcmdbm 0.2.0
MyBatis-like SQL mapping library for C99
|
The entire public API of libcmdbm. More...
#include <libcmutils.h>Go to the source code of this file.
Data Structures | |
| struct | CMDBM_ModuleInterface |
| The set of callbacks a DBMS module implements. More... | |
| struct | CMDBM_PoolConfig |
| How a datasource pools its connections. More... | |
| struct | CMDBM_Database |
| A datasource: one database, its pool and its statements. More... | |
| struct | CMDBM_Session |
| A session: the object statements are run through. More... | |
| struct | CMDBM_Context |
| The root object: the datasources of an application and the sessions which use them. More... | |
Functions | |
| const char * | CMDBM_GetLibVersion (void) |
| Version of the library which is being run. | |
| void | CMDBM_Init (void) |
| Initialize the library. | |
| void | CMDBM_Clear (void) |
| Release everything the library holds. | |
| CMBool | CMDBM_RegisterDBMS (const char *dbmskey, CMDBM_ModuleInterface *modif) |
| Make a DBMS module available under a name. | |
| CMDBM_Database * | CMDBM_DatabaseCreate (const char *sourceid, const char *dbmskey, const char *dbcharset, CMDBM_PoolConfig *poolconf, CMUTIL_JsonObject *params) |
| Build a datasource in code. | |
| CMDBM_Context * | CMDBM_ContextCreate (const char *confjson, const char *progcharset, CMUTIL_Timer *timer) |
| Create a context, optionally from a configuration file. | |
The entire public API of libcmdbm.
This is the only header to include. The context, the datasource, the session and the interface a DBMS module implements are all declared here and grouped by subject in the module list.