| 696 | SQLiteDB& db; |
| 697 | BtCursor* cursor; |
| 698 | IntKeyCursor(SQLiteDB& db, int table, bool write) : db(db), cursor(nullptr) { |
| 699 | cursor = (BtCursor*)new char[sqlite3BtreeCursorSize()]; |
| 700 | sqlite3BtreeCursorZero(cursor); |
| 701 | db.checkError("BtreeCursor", sqlite3BtreeCursor(db.btree, table, write, nullptr, cursor)); |
| 702 | } |
| 703 | ~IntKeyCursor() { |
| 704 | if (cursor) { |
| 705 | try { |
nothing calls this directly
no test coverage detected