1 /* Simple SQL-style database ops. Currently implemented for sqlite3. */
4 /* Returns handle to the database.. */
5 void *db_open(const char *file);
7 /* Runs query (SELECT). Fills in columns. */
10 unsigned int num_rows;
14 struct db_query *db_query(void *h, const char *query);
16 /* Runs command (CREATE TABLE/INSERT) */
17 void db_command(void *h, const char *command);
19 /* Closes database (only called when everything OK). */
20 void db_close(void *h);