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

Method InitializeSQL

libraries/lib-project-file-io/ProjectFileIO.cpp:375–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373constexpr std::array<const char*, 2> BufferedProjectBlobStream::Columns;
374
375bool ProjectFileIO::InitializeSQL()
376{
377 if (audacity::sqlite::Initialize().IsError())
378 return false;
379
380 audacity::sqlite::SetLogCallback(
381 [](int code, std::string_view message) {
382 // message is forwarded from SQLite, so it is null-terminated
383 wxLogMessage("SQLite error (%d): %s", code, message.data());
384 });
385
386 return true;
387}
388
389static const AudacityProject::AttachedObjects::RegisteredFactory sFileIOKey{
390 []( AudacityProject &parent ){

Callers

nothing calls this directly

Calls 4

SetLogCallbackFunction · 0.85
IsErrorMethod · 0.80
InitializeFunction · 0.50
dataMethod · 0.45

Tested by

no test coverage detected