multi: remove DefaultQueryConfig

And always make use of either the new DefaultSQLiteConfig or
DefaultPostgresConfig.
This commit is contained in:
Elle Mouton committed 2025-08-13 14:43:31 +02:00
1 parent 1082eaaeb3
commit b1deddec44
10 files changed
+95 -92

No files matched your search

+6 -1
View File
@@ -449,10 +449,12 @@ func TestPopulateViaMigration(t *testing.T) {
log.SetLevel(btclog.LevelDebug)
var (
cfg = sqldb.DefaultSQLiteConfig()
srcKVDB = kvdbSqlite(t, kvdbSqlitePath, kvdbSqliteFile)
dstSQL = sqlSQLite(t, nativeSQLSqlitePath, nativeSQLSqliteFile)
)
if testPostgres {
cfg = sqldb.DefaultPostgresConfig()
srcKVDB = kvdbPostgres(t, kvdbPostgresDNS)
dstSQL = sqlPostgres(t, nativeSQLPostgresDNS)
}
@@ -462,7 +464,10 @@ func TestPopulateViaMigration(t *testing.T) {
err := dstSQL.ExecTx(
ctx, sqldb.WriteTxOpt(), func(queries SQLQueries) error {
return MigrateGraphToSQL(
ctx, srcKVDB, queries, dbTestChain,
ctx, &SQLStoreConfig{
QueryCfg: cfg,
ChainHash: dbTestChain,
}, srcKVDB, queries,
)
}, func() {},
)