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

Function INIT

src/objects/database.cpp:124–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124INIT(Database::Init) {
125 return DefineClass(env, "Database", {
126 PrototypeMethod<Database, &Database::JS_prepare>("prepare", addon),
127 PrototypeMethod<Database, &Database::JS_exec>("exec", addon),
128 PrototypeMethod<Database, &Database::JS_backup>("backup", addon),
129 PrototypeMethod<Database, &Database::JS_serialize>("serialize", addon),
130 PrototypeMethod<Database, &Database::JS_function>("function", addon),
131 PrototypeMethod<Database, &Database::JS_aggregate>("aggregate", addon),
132 PrototypeMethod<Database, &Database::JS_table>("table", addon),
133 PrototypeMethod<Database, &Database::JS_loadExtension>("loadExtension", addon),
134 PrototypeMethod<Database, &Database::JS_close>("close", addon),
135 PrototypeMethod<Database, &Database::JS_defaultSafeIntegers>("defaultSafeIntegers", addon),
136 PrototypeMethod<Database, &Database::JS_unsafeMode>("unsafeMode", addon),
137 }, addon);
138}
139
140NODE_METHOD(Database::JS_new) {
141 assert(info.IsConstructCall());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected