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

Method ThrowSqliteError

src/objects/database.cpp:54–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

StringFromUtf8Function · 0.85
CodeMethod · 0.80

Tested by

no test coverage detected