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

Function BindValueFromJS

src/util/data.cpp:124–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 int BindValueFromJS(Napi::Env env, sqlite3_stmt* handle, int index, Napi::Value value) {
125 JS_VALUE_TO_SQLITE(bind, value, env, handle, index);
126 return value.IsBigInt() ? SQLITE_TOOBIG : -1;
127 }
128
129 void ResultValueFromJS(Napi::Env env, sqlite3_context* invocation, Napi::Value value, DataConverter* converter) {
130 JS_VALUE_TO_SQLITE(result, value, env, invocation);

Callers 1

BindValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected