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

Method StatementIterator

src/objects/statement-iterator.cpp:3–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1const napi_type_tag StatementIterator::TYPE_TAG = RandomTypeTag();
2
3StatementIterator::StatementIterator(const Napi::CallbackInfo& info) :
4 Napi::ObjectWrap<StatementIterator>(info),
5 stmt(NULL),
6 handle(NULL),
7 db_state(NULL),
8 bound(false),
9 safe_ints(false),
10 mode(Data::FLAT),
11 alive(false),
12 logged(false) {
13 napi_status status = napi_type_tag_object(info.Env(), info.This(), &TYPE_TAG);
14 assert(status == napi_ok); ((void)status);
15 JS_new(info);
16}
17
18// The ~Statement destructor currently covers any state this object creates.
19// Additionally, we actually DON'T want to revert stmt->locked or db_state

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected