MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / ThrowSqliteError

Method ThrowSqliteError

src/objects/database.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void Database::ThrowSqliteError(Napi::Env env, Addon* addon, sqlite3* db_handle) {
54 assert(db_handle != NULL);
55 int code = sqlite3_extended_errcode(db_handle);
56 const char* vfs_message = FdVfs::TakeErrorMessage(db_handle, code);
57 ThrowSqliteError(env, addon, vfs_message ? vfs_message : sqlite3_errmsg(db_handle), code);
58}
59
60void Database::ThrowSqliteError(Napi::Env env, Addon* addon, const char* message, int code) {
61 assert(message != NULL);

Callers

nothing calls this directly

Calls 2

StringFromUtf8Function · 0.85
CodeMethod · 0.80

Tested by

no test coverage detected