| 1 | const napi_type_tag StatementIterator::TYPE_TAG = RandomTypeTag(); |
| 2 | |
| 3 | StatementIterator::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 |
nothing calls this directly
no outgoing calls
no test coverage detected