quote-bot/db.h

18 lines
537 B
C
Raw Permalink Normal View History

2021-03-08 23:16:14 -05:00
#ifndef DB_H
#define DB_H
#include <sqlite3.h>
2021-03-08 23:16:14 -05:00
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 */