libcmdbm 0.2.0
MyBatis-like SQL mapping library for C99
Loading...
Searching...
No Matches
libcmdbm.h File Reference

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_DatabaseCMDBM_DatabaseCreate (const char *sourceid, const char *dbmskey, const char *dbcharset, CMDBM_PoolConfig *poolconf, CMUTIL_JsonObject *params)
 Build a datasource in code.
 
CMDBM_ContextCMDBM_ContextCreate (const char *confjson, const char *progcharset, CMUTIL_Timer *timer)
 Create a context, optionally from a configuration file.
 

Detailed Description

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.

Author
Dennis Soungjin Park xcoma.nosp@m.rt@g.nosp@m.mail..nosp@m.com