controller-legacy/include/database.h

41 lines
549 B
C
Raw Normal View History

2020-02-09 23:58:17 +00:00
#ifndef CONTROLLER_DATABASE_H
#define CONTROLLER_DATABASE_H
#include <sqlite3.h>
extern sqlite3 *global_database;
void
database_init();
void
database_free();
void
database_migrate();
int
database_transaction_begin();
void
database_transaction_commit();
2020-02-09 23:58:17 +00:00
void
database_transaction_rollback();
int
database_helper_get_id(sqlite3_stmt *stmt);
int*
database_helper_get_ids(sqlite3_stmt *stmt);
char*
database_helper_get_string(sqlite3_stmt *stmt);
2020-02-09 23:58:17 +00:00
char**
database_helper_get_strings(sqlite3_stmt *stmt);
2020-06-24 09:41:12 +00:00
2020-02-09 23:58:17 +00:00
#endif /* CONTROLLER_DATABASE_H */