MCPcopy Create free account
hub / github.com/audacity/audacity / CreateStatement

Method CreateStatement

libraries/lib-sqlite-helpers/sqlite/Connection.cpp:253–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253Result<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
269Result<Blob> Connection::OpenBlob(
270 const std::string& tableName, const std::string& columnName, int64_t rowId,

Callers 15

HasAutosaveFunction · 0.80
DropAutosaveFunction · 0.80
ListAttachedDatabasesFunction · 0.80
RemoteProjectSnapshotMethod · 0.80
AttachOriginalDBMethod · 0.80
SetupBlocksCopyMethod · 0.80
CalculateKnownBlocksMethod · 0.80
OnBlockDownloadedMethod · 0.80
CleanupOrphanBlocksMethod · 0.80
OnAppClosingMethod · 0.80

Calls 4

IsErrorMethod · 0.80
ErrorFunction · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected