Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions internal/jet/testutils.go → internal/jet/testutils_test.go
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
package jet

import (
"github.com/stretchr/testify/require"
"strconv"
"testing"
)

var defaultDialect = NewDialect(DialectParams{ // just for tests
AliasQuoteChar: '"',
IdentifierQuoteChar: '"',
ArgumentPlaceholder: func(ord int) string {
return "$" + strconv.Itoa(ord)
},
ArgumentToString: func(value any) (string, bool) {
return "", false
},
})
"github.com/stretchr/testify/require"
)

var (
table1Col1 = IntegerColumn("col1")
Expand Down
12 changes: 12 additions & 0 deletions internal/jet/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,24 @@ package jet

import (
"reflect"
"strconv"
"strings"

"github.com/go-jet/jet/v2/internal/utils/dbidentifier"
"github.com/go-jet/jet/v2/internal/utils/must"
)

var defaultDialect = NewDialect(DialectParams{
AliasQuoteChar: '"',
IdentifierQuoteChar: '"',
ArgumentPlaceholder: func(ord int) string {
return "$" + strconv.Itoa(ord)
},
ArgumentToString: func(value any) (string, bool) {
return "", false
},
})

// SerializeClauseList func
func SerializeClauseList(statement StatementType, clauses []Serializer, out *SQLBuilder) {

Expand Down
Loading