| 122 | } |
| 123 | |
| 124 | INIT(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 | |
| 140 | NODE_METHOD(Database::JS_new) { |
| 141 | assert(info.IsConstructCall()); |
nothing calls this directly
no outgoing calls
no test coverage detected