Inicializar Banco — Design
Gerado pelo Writer (Reversa) em 2026-05-11
Fluxo
AssetDatabasePreparator.prepare('cantaIgreja.db')
→ [iOS] moveAssetsDatabase(nome, IOS_LIBRARY_PATH)
→ [Android] moveAssetsDatabase(nome)
→ [Web] virtual (OPFS gerenciado pelo op-sqlite)
openAsync(nome, { location: strategy.databasePath })
→ DB instance
MigrationsRepository.runMigrations(db)
→ PRAGMA user_version
→ [v8..v15]: SQL + fn? + PRAGMA user_version = v
BibliotecaSugestoesRepertorioRepository.popularSugestoesIniciais()
→ INSERT if COUNT = 0
Banco.database = db // singleton preenchido