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

Method Database

src/objects/database.cpp:13–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11);
12
13Database::Database(
14 v8::Isolate* isolate,
15 Addon* addon,
16 sqlite3* db_handle,
17 v8::Local<v8::Value> logger
18) :
19 node::ObjectWrap(),
20 db_handle(db_handle),
21 open(true),
22 busy(false),
23 safe_ints(false),
24 unsafe_mode(false),
25 was_js_error(false),
26 has_logger(logger->IsFunction()),
27 iterators(0),
28 addon(addon),
29 logger(isolate, logger),
30 stmts(),
31 backups() {
32 assert(db_handle != NULL);
33 addon->dbs.insert(this);
34}
35
36Database::~Database() {
37 if (open) addon->dbs.erase(this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected