#include <dballe/db/internals.h>
#include <dballe/core/var.h>
Go to the source code of this file.
Data Structures | |
struct | _dba_db_data |
Precompiled query to manipulate the data table. More... | |
Typedefs | |
typedef struct _dba_db_data * | dba_db_data |
Precompiled query to manipulate the data table. | |
Functions | |
dba_err | dba_db_data_create (dba_db db, dba_db_data *ins) |
Create a new dba_db_data. | |
void | dba_db_data_delete (dba_db_data ins) |
Deletes a dba_db_data. | |
void | dba_db_data_set (dba_db_data ins, dba_var var) |
Set the input fields of a dba_db_data using the values in a dba_var. | |
void | dba_db_data_set_value (dba_db_data ins, const char *value) |
Set the value input field of a dba_db_data from a string. | |
dba_err | dba_db_data_insert (dba_db_data ins, int rewrite) |
Insert an entry into the data table. |
dba_err dba_db_data_create | ( | dba_db | db, | |
dba_db_data * | ins | |||
) |
Create a new dba_db_data.
db | The dba_db this dba_db_data will access |
ins | The newly created dba_db_data (it will need to be deallocated wth dba_db_data_delete()) |
void dba_db_data_delete | ( | dba_db_data | ins | ) |
dba_err dba_db_data_insert | ( | dba_db_data | ins, | |
int | rewrite | |||
) |
Insert an entry into the data table.
ins | The dba_db_data with the fields filled in with the data to insert. | |
rewrite | If set to true, an existing data with the same context and dba_varcode will be overwritten; else, trying to replace an existing value will result in an error. |
void dba_db_data_set | ( | dba_db_data | ins, | |
dba_var | var | |||
) |
Set the input fields of a dba_db_data using the values in a dba_var.
ins | The dba_db_data to fill in | |
var | The dba_var with the data to copy into ins |
void dba_db_data_set_value | ( | dba_db_data | ins, | |
const char * | value | |||
) |
Set the value input field of a dba_db_data from a string.
ins | The dba_db_data to fill in | |
value | The value to copy into ins |