| 555 | } |
| 556 | |
| 557 | bool SQLiteBatch::HasKey(DataStream&& key) |
| 558 | { |
| 559 | if (!m_database.m_db) return false; |
| 560 | assert(m_read_stmt); |
| 561 | |
| 562 | // Bind: leftmost parameter in statement is index 1 |
| 563 | if (!BindBlobToStatement(m_read_stmt, 1, key, "key")) return false; |
| 564 | int res = sqlite3_step(m_read_stmt); |
| 565 | sqlite3_clear_bindings(m_read_stmt); |
| 566 | sqlite3_reset(m_read_stmt); |
| 567 | return res == SQLITE_ROW; |
| 568 | } |
| 569 | |
| 570 | DatabaseCursor::Status SQLiteCursor::Next(DataStream& key, DataStream& value) |
| 571 | { |
nothing calls this directly
no test coverage detected