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

Method Statement

src/objects/statement.cpp:3–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1const napi_type_tag Statement::TYPE_TAG = RandomTypeTag();
2
3Statement::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
20Statement::~Statement() {
21 if (alive) db->RemoveStatement(this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected