38f191c997
Here you have it.
18 lines
537 B
C
18 lines
537 B
C
#ifndef DB_H
|
|
#define DB_H
|
|
|
|
#include <sqlite3.h>
|
|
|
|
typedef int (*callback)(void *, int, char **, char **);
|
|
|
|
int sqlite_version(sqlite3 *);
|
|
int run_one(sqlite3 *, callback, const char *);
|
|
int run_script_callback(void *, int argc, char **, char **);
|
|
int run_script(sqlite3 *, callback, const char *);
|
|
|
|
int insert_new_definition(sqlite3 *, const char *, const char *, const char *, const char *);
|
|
int delete_from_table_by_rowid(sqlite3 *, int);
|
|
int table_exists(sqlite3 *, callback, const char *);
|
|
|
|
#endif /* DB_H */
|