summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-15 18:00:56 +0000
committeralex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-15 18:00:56 +0000
commitee2f224a93faee1cf04b1eae03e610d438216ce7 (patch)
treef8503c81016337f8c5782d84e2fe4bade7b96453 /include
parent941c0734ac24a6719828edd24010f08e43ae4ef7 (diff)
downloadzabbix-ee2f224a93faee1cf04b1eae03e610d438216ce7.tar.gz
zabbix-ee2f224a93faee1cf04b1eae03e610d438216ce7.tar.xz
zabbix-ee2f224a93faee1cf04b1eae03e610d438216ce7.zip
More support of sqlite.
git-svn-id: svn://svn.zabbix.com/trunk@3492 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include')
-rw-r--r--include/db.h18
1 files changed, 8 insertions, 10 deletions
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);