| 75 | } |
| 76 | |
| 77 | sqlite3_stmt* PrepareRawOrDie(sqlite3* db, const char* sql) { |
| 78 | sqlite3_stmt* stmt = nullptr; |
| 79 | int rc = sqlite3_prepare_v2(db, sql, -1, &stmt, nullptr); |
| 80 | CHECK_EQ(SQLITE_OK, rc) << sql; |
| 81 | return stmt; |
| 82 | } |
| 83 | |
| 84 | Status SetPragma(Sqlite* db, const char* pragma, const StringPiece& value) { |
| 85 | if (value.empty()) return Status::OK(); |