error on missing db

This commit is contained in:
anon 2023-08-04 15:31:16 +02:00
parent dcc9e899e5
commit 4bc72fcef9

View File

@ -67,7 +67,7 @@ VARDECL sqlite3 * connection = NULL;
DECL int
api_init(void)
{
DBERR(sqlite3_open(db, &connection));
DBERR(sqlite3_open_v2(db, &connection, SQLITE_OPEN_READONLY, NULL));
// dont you fucking dare to remove this spacing
DBERR(stmt_prepare(remind_stmt));
DBERR(stmt_prepare(set_repo_stmt));