| 11 | ); |
| 12 | |
| 13 | Database::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 | |
| 36 | Database::~Database() { |
| 37 | if (open) addon->dbs.erase(this); |
nothing calls this directly
no outgoing calls
no test coverage detected