| 251 | } |
| 252 | |
| 253 | Result<Statement> Connection::CreateStatement(std::string_view sql) const |
| 254 | { |
| 255 | if (mInDestructor || mConnection == nullptr) |
| 256 | return Error(SQLITE_MISUSE); |
| 257 | |
| 258 | sqlite3_stmt* statement = nullptr; |
| 259 | |
| 260 | auto error = Error(sqlite3_prepare_v2( |
| 261 | mConnection, sql.data(), sql.size(), &statement, nullptr)); |
| 262 | |
| 263 | if (error.IsError()) |
| 264 | return error; |
| 265 | |
| 266 | return Result<Statement>(Statement(statement)); |
| 267 | } |
| 268 | |
| 269 | Result<Blob> Connection::OpenBlob( |
| 270 | const std::string& tableName, const std::string& columnName, int64_t rowId, |
no test coverage detected