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

Method ThrowSqliteError

src/objects/database.cpp:53–56  ·  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 ThrowSqliteError(env, addon, sqlite3_errmsg(db_handle), sqlite3_extended_errcode(db_handle));
56}
57
58void Database::ThrowSqliteError(Napi::Env env, Addon* addon, const char* message, int code) {
59 assert(message != NULL);

Callers

nothing calls this directly

Calls 2

StringFromUtf8Function · 0.85
CodeMethod · 0.80

Tested by

no test coverage detected