added a check for skipping generation of table SQL builder code
This commit is contained in:
parent
a792fe6e0a
commit
882d5562f3
3 changed files with 41 additions and 5 deletions
|
|
@ -10,10 +10,11 @@ import (
|
|||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/go-jet/jet/v2/generator/postgres"
|
||||
"github.com/go-jet/jet/v2/internal/testutils"
|
||||
"github.com/go-jet/jet/v2/tests/dbconfig"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/go-jet/jet/v2/tests/.gentestdata/jetdb/dvds/model"
|
||||
)
|
||||
|
|
@ -913,4 +914,15 @@ func newAllTypesTableImpl(schemaName, tableName, alias string) allTypesTable {
|
|||
MutableColumns: mutableColumns,
|
||||
}
|
||||
}
|
||||
|
||||
func SetTestSampleSchema(schema string) {
|
||||
AllTypes = AllTypes.FromSchema(schema)
|
||||
Link = Link.FromSchema(schema)
|
||||
Employee = Employee.FromSchema(schema)
|
||||
Person = Person.FromSchema(schema)
|
||||
PersonPhone = PersonPhone.FromSchema(schema)
|
||||
WeirdNamesTable = WeirdNamesTable.FromSchema(schema)
|
||||
User = User.FromSchema(schema)
|
||||
Floats = Floats.FromSchema(schema)
|
||||
}
|
||||
`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue