database: libDatabase Reference Manual

## database database |

## Functions

int | (*DatabaseCallback) ()
Database * | database_new ()
void | database_delete ()
int64_t | database_get_last_id ()
int | database_query ()

## Types and Values

enum | DatabaseType
| Database

## Description

## Functions

### DatabaseCallback ()

    int
    (*DatabaseCallback) (void *data,
                         int argc,
                         char **argv,
                         char **columns);

### database_new ()

    Database *
    database_new (char const *engine,
                  Config *config,
                  char const *section);

### database_delete ()

    void
    database_delete (Database *database);

### database_get_last_id ()

    int64_t
    database_get_last_id (Database *database);

### database_query ()

    int
    database_query (Database *database,
                    char const *query,
                    DatabaseCallback callback,
                    void *data);

## Types and Values

### enum DatabaseType

#### Members

DT_NULL |  |
DT_INTEGER |  |
DT_TIMESTAMP |  |
DT_VARCHAR |  |

### Database

    typedef struct _Database Database;