| 738 | } |
| 739 | ~RawCursor() { destroyCursor(); } |
| 740 | void destroyCursor() { |
| 741 | if (cursor) { |
| 742 | try { |
| 743 | db.checkError("BtreeCloseCursor", sqlite3BtreeCloseCursor(cursor)); |
| 744 | } catch (...) { |
| 745 | TraceEvent(SevError, "RawCursorDestructionError").log(); |
| 746 | } |
| 747 | delete[](char*) cursor; |
| 748 | } |
| 749 | } |
| 750 | void moveFirst() { |
| 751 | int empty = 1; |
| 752 | db.checkError("BtreeFirst", sqlite3BtreeFirst(cursor, &empty)); |
nothing calls this directly
no test coverage detected