| 111 | size_t DBsqliteKV::test_get_approximate_size() const { return 0; } |
| 112 | |
| 113 | size_t DBsqliteKV::get_approximate_items_count() const { |
| 114 | return std::numeric_limits<size_t>:: |
| 115 | max(); // Sqlite does full table scan on select count(*), we do not want that behavior |
| 116 | // sqlite3_reset(stmt_select_star.handle); |
| 117 | // auto rc = sqlite3_step(stmt_select_star.handle); |
| 118 | // if (rc != SQLITE_ROW) |
| 119 | // throw platform::sqlite::Error("DB::get_approximate_items_count failed sqlite3_step in get " + |
| 120 | // common::to_string(rc)); |
| 121 | // return common::integer_cast<size_t>(sqlite3_column_int64(stmt_select_star.handle, 0)); |
| 122 | } |
| 123 | |
| 124 | static const size_t max_key_size = 255; |
| 125 |
nothing calls this directly
no outgoing calls
no test coverage detected