multi: remove DefaultQueryConfig

And always make use of either the new DefaultSQLiteConfig or
DefaultPostgresConfig.
This commit is contained in:
Elle Mouton
2025-08-13 09:30:09 +02:00
parent 1082eaaeb3
commit b1deddec44
10 changed files with 95 additions and 92 deletions

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