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

Function GetArgumentsJS

src/util/data.cpp:117–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 void GetArgumentsJS(Napi::Env env, napi_value* out, sqlite3_value** values, int argument_count, bool safe_ints) {
118 assert(argument_count > 0);
119 for (int i = 0; i < argument_count; ++i) {
120 out[i] = Data::GetValueJS(env, values[i], safe_ints);
121 }
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);

Callers 2

xStepBaseMethod · 0.85
xFuncMethod · 0.85

Calls 1

GetValueJSFunction · 0.85

Tested by

no test coverage detected