8#include "../../include/sqlite3.h"
10#define DB_OPEN_STATUS_SUCCESS 0
11#define DB_OPEN_STATUS_FAILURE 1
14#define DB_BUILD_DIR_PATH(database) #database
15#define DB_RESOURCE_PATH(dir, database) "resources/database/" #dir "/" #database
16#define DB_RESOURCE_PATH_UP(dir, database) "../" DB_RESOURCE_PATH(dir, database)
28typedef enum db_type_t {
int db_is_open(const db_connection_t *db_connection)
This function is to check if the database is open.
int db_open(db_connection_t *db_connection, const char *db_name)
This function is for the opening of the database.
int db_open_multiple_access(db_connection_t *db_connection, db_type_t type)
This function is for the opening of the database with multiple access.
void db_close(db_connection_t *db_connection)
This function is for the closing of the database.
This struct is used for the database connection in SQLite.