From ee2f224a93faee1cf04b1eae03e610d438216ce7 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 15 Nov 2006 18:00:56 +0000 Subject: More support of sqlite. git-svn-id: svn://svn.zabbix.com/trunk@3492 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- include/db.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/db.h b/include/db.h index 3329214b..e7542293 100644 --- a/include/db.h +++ b/include/db.h @@ -354,19 +354,17 @@ void DBconnect(void); void DBclose(void); void DBvacuum(void); -/*int DBexecute( char *query );*/ -int DBexecute(const char *fmt, ...); -/*long DBaffected_rows();*/ +int DBexecute(const char *fmt, ...); -/*DB_RESULT DBselect(char *query);*/ -DB_RESULT DBselect(const char *fmt, ...); +DB_RESULT DBselect(const char *fmt, ...); DB_RESULT DBselectN(char *query, int n); -DB_ROW DBfetch(DB_RESULT result); -zbx_uint64_t DBget_nextid(char *table, char *field); -/*char *DBget_field(DB_RESULT result, int rownum, int fieldnum);*/ -/*int DBnum_rows(DB_RESULT result);*/ +DB_ROW DBfetch(DB_RESULT result); +zbx_uint64_t DBget_nextid(char *table, char *field); zbx_uint64_t DBinsert_id(int exec_result, const char *table, const char *field); -int DBis_null(char *field); +int DBis_null(char *field); +void DBbegin(); +void DBcommit(); +void DBrollback(); int DBget_function_result(double *result,char *functionid); void DBupdate_host_availability(zbx_uint64_t hostid,int available,int clock,char *error); -- cgit