2021-03-08 23:16:14 -05:00
|
|
|
#ifndef DB_H
|
|
|
|
#define DB_H
|
|
|
|
|
2021-03-11 12:48:15 -05:00
|
|
|
#include <sqlite3.h>
|
2021-03-08 23:16:14 -05:00
|
|
|
|
2021-03-31 08:47:18 -04:00
|
|
|
typedef int (*callback)(void *, int, char **, char **);
|
|
|
|
|
2021-03-11 12:48:15 -05:00
|
|
|
int sqlite_version(sqlite3 *);
|
2021-03-31 08:47:18 -04:00
|
|
|
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 *);
|
2021-03-11 12:48:15 -05:00
|
|
|
|
|
|
|
#endif /* DB_H */
|