| 1 | Statement::Statement( |
| 2 | Database* db, |
| 3 | sqlite3_stmt* handle, |
| 4 | sqlite3_uint64 id, |
| 5 | bool returns_data |
| 6 | ) : |
| 7 | node::ObjectWrap(), |
| 8 | db(db), |
| 9 | handle(handle), |
| 10 | extras(new Extras(id)), |
| 11 | alive(true), |
| 12 | locked(false), |
| 13 | bound(false), |
| 14 | has_bind_map(false), |
| 15 | safe_ints(db->GetState()->safe_ints), |
| 16 | mode(Data::FLAT), |
| 17 | returns_data(returns_data) { |
| 18 | assert(db != NULL); |
| 19 | assert(handle != NULL); |
| 20 | assert(db->GetState()->open); |
| 21 | assert(!db->GetState()->busy); |
| 22 | db->AddStatement(this); |
| 23 | } |
| 24 | |
| 25 | Statement::~Statement() { |
| 26 | if (alive) db->RemoveStatement(this); |
nothing calls this directly
no test coverage detected