OpenDNSSEC-enforcer
1.4.5
|
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <mysql.h>
#include "ksm/dbsdef.h"
#include "ksm/database.h"
#include "ksm/debug.h"
#include "ksm/memory.h"
#include "ksm/message.h"
#include "ksm/string_util.h"
Go to the source code of this file.
Macros | |
#define | MIN(x, y) ((x) < (y) ? (x) : (y)) |
#define | MAX(x, y) ((x) > (y) ? (x) : (y)) |
Functions | |
int | DbExecuteSql (DB_HANDLE handle, const char *stmt_str, DB_RESULT *result) |
void | DbFreeResult (DB_RESULT result) |
int | DbFetchRow (DB_RESULT result, DB_ROW *row) |
void | DbFreeRow (DB_ROW row) |
int | DbString (DB_ROW row, int field_index, char **result) |
void | DbStringFree (char *string) |
int | DbBeginTransaction (void) |
int | DbCommit (void) |
int | DbRollback (void) |
#define MAX | ( | x, | |
y | |||
) | ((x) > (y) ? (x) : (y)) |
Definition at line 53 of file database_access_mysql.c.
#define MIN | ( | x, | |
y | |||
) | ((x) < (y) ? (x) : (y)) |
Definition at line 52 of file database_access_mysql.c.
int DbBeginTransaction | ( | void | ) |
Definition at line 416 of file database_access_mysql.c.
References DbExecuteSqlNoResult(), and DbHandle().
int DbCommit | ( | void | ) |
Definition at line 432 of file database_access_mysql.c.
References DbExecuteSqlNoResult(), and DbHandle().
Definition at line 107 of file database_access_mysql.c.
References db_result::count, DB_RESULT_MAGIC, DbErrmsg(), DBS_INVARG, DBS_SQLFAIL, MemCalloc(), MemFree, and MsgLog().
Definition at line 245 of file database_access_mysql.c.
References db_result::data, DB_RESULT_MAGIC, DB_ROW_MAGIC, DBS_INVARG, db_result::first_row, db_result::magic, MemCalloc(), and MsgLog().
void DbFreeResult | ( | DB_RESULT | result | ) |
Definition at line 200 of file database_access_mysql.c.
References db_result::data, DB_RESULT_MAGIC, DBS_INVARG, db_result::magic, MemFree, and MsgLog().
void DbFreeRow | ( | DB_ROW | row | ) |
Definition at line 297 of file database_access_mysql.c.
References DB_ROW_MAGIC, DBS_INVARG, db_row::magic, MemFree, and MsgLog().
int DbRollback | ( | void | ) |
Definition at line 448 of file database_access_mysql.c.
References DbExecuteSqlNoResult(), and DbHandle().
int DbString | ( | DB_ROW | row, |
int | field_index, | ||
char ** | result | ||
) |
Definition at line 340 of file database_access_mysql.c.
References db_result::count, db_result::data, DB_ROW_MAGIC, DBS_INVARG, DBS_INVINDEX, db_row::magic, MemMalloc(), MsgLog(), and db_row::result.
void DbStringFree | ( | char * | string | ) |
Definition at line 400 of file database_access_mysql.c.
References MemFree.