MCPcopy Create free account
hub / github.com/apple/foundationdb / IntKeyCursor

Method IntKeyCursor

fdbserver/KeyValueStoreSQLite.actor.cpp:698–702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

sqlite3BtreeCursorSizeFunction · 0.85
sqlite3BtreeCursorZeroFunction · 0.85
sqlite3BtreeCursorFunction · 0.85
checkErrorMethod · 0.45

Tested by

no test coverage detected