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

Function INIT

src/objects/database.cpp:125–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected