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

+4 -4
View File
@@ -22,7 +22,7 @@ func TestExecuteBatchQuery(t *testing.T) {
t.Run("empty input returns nil", func(t *testing.T) {
var (
cfg = DefaultQueryConfig()
cfg = DefaultSQLiteConfig()
inputItems []int
)
@@ -144,7 +144,7 @@ func TestExecuteBatchQuery(t *testing.T) {
t.Run("query function error is propagated", func(t *testing.T) {
var (
cfg = DefaultQueryConfig()
cfg = DefaultSQLiteConfig()
inputItems = []int{1, 2, 3}
)
@@ -174,7 +174,7 @@ func TestExecuteBatchQuery(t *testing.T) {
t.Run("callback error is propagated", func(t *testing.T) {
var (
cfg = DefaultQueryConfig()
cfg = DefaultSQLiteConfig()
inputItems = []int{1, 2, 3}
)
@@ -307,7 +307,7 @@ func TestSQLSliceQueries(t *testing.T) {
err := ExecuteBatchQuery(
ctx,
DefaultQueryConfig(),
DefaultSQLiteConfig(),
queryParams,
func(s string) string {
return s