Skip to content

Commit bd9af4b

Browse files
authored
examples: Move sqlc.json into examples folder (#238)
1 parent 4233901 commit bd9af4b

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

examples/sqlc.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"version": "1",
3+
"packages": [
4+
{
5+
"path": "ondeck",
6+
"schema": "ondeck/schema",
7+
"queries": "ondeck/query",
8+
"engine": "postgresql",
9+
"emit_json_tags": true,
10+
"emit_prepared_queries": true
11+
},
12+
{
13+
"path": "jets",
14+
"schema": "jets/schema.sql",
15+
"queries": "jets/query-building.sql",
16+
"engine": "postgresql"
17+
},
18+
{
19+
"name": "booktest",
20+
"path": "booktest/postgresql",
21+
"schema": "booktest/postgresql/schema.sql",
22+
"queries": "booktest/postgresql/query.sql",
23+
"engine": "postgresql"
24+
},
25+
{
26+
"name": "booktest",
27+
"path": "booktest/mysql",
28+
"schema": "booktest/mysql/schema.sql",
29+
"queries": "booktest/mysql/query.sql",
30+
"engine": "mysql"
31+
}
32+
]
33+
}

internal/endtoend/endtoend_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

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

2020
rd, err := os.Open("sqlc.json")
2121
if err != nil {

sqlc.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)