823330dde9
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.
13 lines
346 B
C
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 */
|