quote-bot/db.h
Bubblegumdrop 823330dde9 Insert, update, run script, run single query.
Most of the basic db functionality is in place now.

Changing print_col out for a user-supplied callback function might be a
cool idea.
2021-03-11 12:48:15 -05:00

13 lines
346 B
C

#ifndef DB_H
#define DB_H
#include <sqlite3.h>
int insert_row(sqlite3 *, const char *, const char *, const char *, const char *);
int run_one(sqlite3 *, const char *);
int run_script(sqlite3 *, const char *);
int sqlite_version(sqlite3 *);
int update_one(sqlite3 *, int, const char *, const char *);
#endif /* DB_H */