28 mError =
Error(sqlite3_config(SQLITE_CONFIG_URI, 1));
34 Error(sqlite3_config(SQLITE_CONFIG_LOG, SQLiteLogCallback,
this));
39 mError =
Error(sqlite3_initialize());
49 auto vfs = sqlite3_vfs_find(
"unix-excl");
51 sqlite3_vfs_register(vfs, 1);
59 (void)sqlite3_shutdown();
77 mLogCallback = std::move(callback);
A class representing an error in SQLite.
static void SQLiteLogCallback(void *initer, int code, const char *msg)
Error GetError() const noexcept
void SetLogCallback(LogCallback callback)
static SQLiteIniter & GetIniter()
std::function< void(int, std::string_view)> LogCallback
void SetLogCallback(LogCallback callback)
Error Initialize() noexcept