| 1 | const napi_type_tag Statement::TYPE_TAG = RandomTypeTag(); |
| 2 | |
| 3 | Statement::Statement(const Napi::CallbackInfo& info) : |
| 4 | Napi::ObjectWrap<Statement>(info), |
| 5 | db(NULL), |
| 6 | handle(NULL), |
| 7 | extras(NULL), |
| 8 | alive(false), |
| 9 | locked(false), |
| 10 | bound(false), |
| 11 | has_bind_map(false), |
| 12 | safe_ints(false), |
| 13 | mode(Data::FLAT), |
| 14 | returns_data(false) { |
| 15 | napi_status status = napi_type_tag_object(info.Env(), info.This(), &TYPE_TAG); |
| 16 | assert(status == napi_ok); ((void)status); |
| 17 | JS_new(info); |
| 18 | } |
| 19 | |
| 20 | Statement::~Statement() { |
| 21 | if (alive) db->RemoveStatement(this); |
nothing calls this directly
no outgoing calls
no test coverage detected