FOSSredder 0.5.0
Loading...
Searching...
No Matches
SqliteSchema.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <string>
9
10struct sqlite3;
11
13public:
18 static void ensure(sqlite3* db);
23 static void migrate(sqlite3* db);
24
25private:
31 static int getUserVersion(sqlite3* db);
37 static void setUserVersion(sqlite3* db, int v);
38};
static void migrate(sqlite3 *db)
Run schema migrations for the database.
static void ensure(sqlite3 *db)
Ensure the database schema exists and is migrated.