OpenDNSSEC-enforcer  1.3.4
Defines | Functions
/build/buildd/opendnssec-1.3.4/enforcer/ksm/database_support_lite.c File Reference
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <sqlite3.h>
#include "ksm/dbsdef.h"
#include "ksm/database.h"
#include "ksm/debug.h"
#include "ksm/message.h"
#include "ksm/string_util.h"
#include "ksm/string_util2.h"
Include dependency graph for database_support_lite.c:

Go to the source code of this file.

Defines

#define MIN(x, y)   ((x) < (y) ? (x) : (y))
#define MAX(x, y)   ((x) > (y) ? (x) : (y))

Functions

int DbExecuteSqlNoResult (DB_HANDLE handle, const char *stmt_str)
int DbRowId (DB_ROW row, DB_ID *id)
int DbInt (DB_ROW row, int field_index, int *value)
int DbUnsignedLong (DB_ROW row, int field_index, unsigned long *value)
int DbIntQuery (DB_HANDLE handle, int *value, const char *query)
int DbStringBuffer (DB_ROW row, int field_index, char *buffer, size_t buflen)
int DbErrno (DB_HANDLE handle)
const char * DbErrmsg (DB_HANDLE handle)
int DbLastRowId (DB_HANDLE handle, DB_ID *id)

Define Documentation

#define MAX (   x,
 
)    ((x) > (y) ? (x) : (y))

Definition at line 52 of file database_support_lite.c.

#define MIN (   x,
 
)    ((x) < (y) ? (x) : (y))

Definition at line 51 of file database_support_lite.c.


Function Documentation

const char* DbErrmsg ( DB_HANDLE  handle)
int DbErrno ( DB_HANDLE  handle)

Definition at line 405 of file database_support_lite.c.

int DbExecuteSqlNoResult ( DB_HANDLE  handle,
const char *  stmt_str 
)
int DbInt ( DB_ROW  row,
int  field_index,
int *  value 
)
int DbIntQuery ( DB_HANDLE  handle,
int *  value,
const char *  query 
)
int DbLastRowId ( DB_HANDLE  handle,
DB_ID id 
)

Definition at line 459 of file database_support_lite.c.

Referenced by KsmDnssecKeyCreate(), KsmImportKeyPair(), and KsmKeyPairCreate().

int DbRowId ( DB_ROW  row,
DB_ID id 
)

Definition at line 120 of file database_support_lite.c.

int DbStringBuffer ( DB_ROW  row,
int  field_index,
char *  buffer,
size_t  buflen 
)
int DbUnsignedLong ( DB_ROW  row,
int  field_index,
unsigned long *  value 
)

Definition at line 225 of file database_support_lite.c.

Referenced by DbRowId(), KsmKey(), and KsmPolicyPopulateSMFromIds().