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
33 changes: 33 additions & 0 deletions examples/sqlc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"version": "1",
"packages": [
{
"path": "ondeck",
"schema": "ondeck/schema",
"queries": "ondeck/query",
"engine": "postgresql",
"emit_json_tags": true,
"emit_prepared_queries": true
},
{
"path": "jets",
"schema": "jets/schema.sql",
"queries": "jets/query-building.sql",
"engine": "postgresql"
},
{
"name": "booktest",
"path": "booktest/postgresql",
"schema": "booktest/postgresql/schema.sql",
"queries": "booktest/postgresql/query.sql",
"engine": "postgresql"
},
{
"name": "booktest",
"path": "booktest/mysql",
"schema": "booktest/mysql/schema.sql",
"queries": "booktest/mysql/query.sql",
"engine": "mysql"
}
]
}
2 changes: 1 addition & 1 deletion internal/endtoend/endtoend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

func TestCodeGeneration(t *testing.T) {
// Change to the top-level directory of the project
os.Chdir(filepath.Join("..", ".."))
os.Chdir(filepath.Join("..", "..", "examples"))

rd, err := os.Open("sqlc.json")
if err != nil {
Expand Down
33 changes: 0 additions & 33 deletions sqlc.json

This file was deleted.