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

Method NODE_METHOD

src/addon.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 static NODE_METHOD(JS_initialize) {
34 REQUIRE_ARGUMENT_FUNCTION(first, Napi::Function SqliteError);
35 REQUIRE_ARGUMENT_FUNCTION(second, Napi::Function ArrayFactory);
36 REQUIRE_ARGUMENT_FUNCTION(third, Napi::Function ArrayAppender);
37 REQUIRE_ARGUMENT_FUNCTION(fourth, Napi::Function RowFactory);
38 REQUIRE_ARGUMENT_FUNCTION(fifth, Napi::Function RecordFactory);
39 OnlyAddon->SqliteError = Napi::Persistent(SqliteError);
40 OnlyAddon->ArrayFactory = Napi::Persistent(ArrayFactory);
41 OnlyAddon->ArrayAppender = Napi::Persistent(ArrayAppender);
42 OnlyAddon->RowFactory = Napi::Persistent(RowFactory);
43 OnlyAddon->RecordFactory = Napi::Persistent(RecordFactory);
44 return info.Env().Undefined();
45 }
46
47 Napi::FunctionReference Statement;
48 Napi::FunctionReference StatementIterator;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected