Generator cleanup.
This commit is contained in:
parent
ee5d526d26
commit
a44bd85d32
22 changed files with 97 additions and 92 deletions
|
|
@ -91,7 +91,7 @@ func TestJoinEverything(t *testing.T) {
|
|||
Customer struct { // customer data for invoice
|
||||
model.Customer
|
||||
|
||||
Employee *struct {
|
||||
Employee *struct { // employee data for customer if exists
|
||||
model.Employee
|
||||
|
||||
Manager *model.Employee
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package main
|
|||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"github.com/go-jet/jet/generator"
|
||||
postgres_generator "github.com/go-jet/jet/generator/postgresgen"
|
||||
"github.com/go-jet/jet/tests/dbconfig"
|
||||
"io/ioutil"
|
||||
)
|
||||
|
|
@ -33,7 +33,7 @@ func main() {
|
|||
|
||||
_, err = db.Exec(string(testSampleSql))
|
||||
|
||||
err = generator.Generate("./.test_files", generator.GeneratorData{
|
||||
err = postgres_generator.Generate("./.test_files", postgres_generator.DBConnection{
|
||||
Host: dbconfig.Host,
|
||||
Port: "5432",
|
||||
User: dbconfig.User,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue