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

Method Fail

src/util/binder.cpp:60–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58 }
59
60 void Fail(Napi::Value (*Throw)(Napi::Env, const char*), Napi::Env env, const char* message) {
61 assert(success == true);
62 assert((Throw == NULL) == (message == NULL));
63 assert(Throw == ThrowError || Throw == ThrowTypeError || Throw == ThrowRangeError || Throw == NULL);
64 if (Throw) Throw(env, message);
65 success = false;
66 }
67
68 int NextAnonIndex() {
69 while (sqlite3_bind_parameter_name(handle, ++anon_index) != NULL) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected