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

Method InstallSchema

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

Source from the content-addressed store, hash-verified

799}
800
801bool ProjectFileIO::InstallSchema(sqlite3 *db, const char *schema /* = "main" */)
802{
803 int rc;
804
805 wxString sql;
806 sql.Printf(ProjectFileSchema, ProjectFileID, BaseProjectFormatVersion.GetPacked());
807 sql.Replace("<schema>", schema);
808
809 rc = sqlite3_exec(db, sql, nullptr, nullptr, nullptr);
810 if (rc != SQLITE_OK)
811 {
812 SetDBError(
813 XO("Unable to initialize the project file")
814 );
815 return false;
816 }
817
818 return true;
819}
820
821// The orphan block handling should be removed once autosave and related
822// blocks become part of the same transaction.

Callers

nothing calls this directly

Calls 1

GetPackedMethod · 0.80

Tested by

no test coverage detected