OpenDNSSEC-enforcer
2.1.5
|
#include "db_configuration.h"
#include "db_backend.h"
#include "db_result.h"
#include "db_object.h"
#include "db_join.h"
#include "db_clause.h"
Go to the source code of this file.
Data Structures | |
struct | db_connection |
Typedefs | |
typedef struct db_connection | db_connection_t |
typedef struct db_connection db_connection_t |
Definition at line 34 of file db_connection.h.
int db_connection_connect | ( | const db_connection_t * | connection | ) |
Connect to the database.
[in] | connection | a db_connection_t pointer. |
Definition at line 88 of file db_connection.c.
int db_connection_count | ( | const db_connection_t * | connection, |
const db_object_t * | object, | ||
const db_join_list_t * | join_list, | ||
const db_clause_list_t * | clause_list, | ||
size_t * | count | ||
) |
Count objects from the database. Return the count in count
.
[in] | connection | a db_connection_t pointer. |
[in] | object | a db_object_t pointer. |
[in] | join_list | a db_join_list_t pointer. |
[in] | clause_list | a db_clause_list_t pointer. |
[out] | count | a size_t pointer. |
Definition at line 170 of file db_connection.c.
int db_connection_create | ( | const db_connection_t * | connection, |
const db_object_t * | object, | ||
const db_object_field_list_t * | object_field_list, | ||
const db_value_set_t * | value_set | ||
) |
Create an object in the database. The object
refer to the database object begin created, the object_field_list
describes the fields that should be set in the object and the value_set
has the values for each field.
[in] | connection | a db_connection_t pointer. |
[in] | object | a db_object_t pointer. |
[in] | object_field_list | a db_object_field_list_t pointer. |
[in] | value_set | a db_value_set_t pointer. |
Definition at line 102 of file db_connection.c.
int db_connection_delete | ( | const db_connection_t * | connection, |
const db_object_t * | object, | ||
const db_clause_list_t * | clause_list | ||
) |
Delete an object or objects from the database.
[in] | connection | a db_connection_t pointer. |
[in] | object | a db_object_t pointer. |
[in] | clause_list | a db_clause_list_t pointer. |
Definition at line 156 of file db_connection.c.
void db_connection_free | ( | db_connection_t * | connection | ) |
Delete a database connection and the database backend within.
[in] | connection | a db_connection_t pointer. |
Definition at line 45 of file db_connection.c.
Referenced by clean_suite_initialization().
db_connection_t* db_connection_new | ( | void | ) |
Create a new database connection.
Definition at line 38 of file db_connection.c.
db_result_list_t* db_connection_read | ( | const db_connection_t * | connection, |
const db_object_t * | object, | ||
const db_join_list_t * | join_list, | ||
const db_clause_list_t * | clause_list | ||
) |
Read an object or objects from the database.
[in] | connection | a db_connection_t pointer. |
[in] | object | a db_object_t pointer. |
[in] | join_list | a db_join_list_t pointer. |
[in] | clause_list | a db_clause_list_t pointer. |
Definition at line 122 of file db_connection.c.
int db_connection_set_configuration_list | ( | db_connection_t * | connection, |
const db_configuration_list_t * | configuration_list | ||
) |
Set the database configuration list for a database connection.
[in] | connection | a db_connection_t pointer. |
[in] | configuration_list | a db_configuration_list_t pointer. |
Definition at line 54 of file db_connection.c.
int db_connection_setup | ( | db_connection_t * | connection | ) |
Setup the database connection, this verifies the information in the database configuration list and allocated a database backend.
[in] | connection | a db_connection_t pointer. |
Definition at line 66 of file db_connection.c.
int db_connection_update | ( | const db_connection_t * | connection, |
const db_object_t * | object, | ||
const db_object_field_list_t * | object_field_list, | ||
const db_value_set_t * | value_set, | ||
const db_clause_list_t * | clause_list | ||
) |
Update an object or objects in the database.
[in] | connection | a db_connection_t pointer. |
[in] | object | a db_object_t pointer. |
[in] | object_field_list | a db_object_field_list_t pointer. |
[in] | value_set | a db_value_set_t pointer. |
[in] | clause_list | a db_clause_list_t pointer. |
Definition at line 136 of file db_connection.c.