Skip to content

Commit 34b7df9

Browse files
committed
Update sqlc.json
1 parent 821e24a commit 34b7df9

File tree

1 file changed

+57
-28
lines changed

1 file changed

+57
-28
lines changed

examples/kotlin/sqlc.json

Lines changed: 57 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,111 @@
11
{
22
"version": "2",
3+
"plugins": [
4+
{
5+
"name": "kt",
6+
"process": {
7+
"cmd": "sqlc-gen-kotlin"
8+
}
9+
}
10+
],
311
"sql": [
412
{
513
"schema": "src/main/resources/authors/postgresql/schema.sql",
614
"queries": "src/main/resources/authors/postgresql/query.sql",
715
"engine": "postgresql",
8-
"gen": {
9-
"kotlin": {
16+
"codegen": [
17+
{
1018
"out": "src/main/kotlin/com/example/authors/postgresql",
11-
"package": "com.example.authors.postgresql"
19+
"plugin": "kt",
20+
"options": {
21+
"package": "com.example.authors.postgresql"
22+
}
1223
}
13-
}
24+
]
1425
},
1526
{
1627
"schema": "src/main/resources/ondeck/postgresql/schema",
1728
"queries": "src/main/resources/ondeck/postgresql/query",
1829
"engine": "postgresql",
19-
"gen": {
20-
"kotlin": {
30+
"codegen": [
31+
{
2132
"out": "src/main/kotlin/com/example/ondeck/postgresql",
22-
"package": "com.example.ondeck.postgresql"
33+
"plugin": "kt",
34+
"options": {
35+
"package": "com.example.ondeck.postgresql"
36+
}
2337
}
24-
}
38+
]
2539
},
2640
{
2741
"schema": "src/main/resources/jets/schema.sql",
2842
"queries": "src/main/resources/jets/query-building.sql",
2943
"engine": "postgresql",
30-
"gen": {
31-
"kotlin": {
44+
"codegen": [
45+
{
46+
"plugin": "kt",
3247
"out": "src/main/kotlin/com/example/jets",
33-
"package": "com.example.jets"
48+
"options": {
49+
"package": "com.example.jets"
50+
}
3451
}
35-
}
52+
]
3653
},
3754
{
3855
"schema": "src/main/resources/booktest/postgresql/schema.sql",
3956
"queries": "src/main/resources/booktest/postgresql/query.sql",
4057
"engine": "postgresql",
41-
"gen": {
42-
"kotlin": {
58+
"codegen": [
59+
{
4360
"out": "src/main/kotlin/com/example/booktest/postgresql",
44-
"package": "com.example.booktest.postgresql"
61+
"plugin": "kt",
62+
"options": {
63+
"package": "com.example.booktest.postgresql"
64+
}
4565
}
46-
}
66+
]
4767
},
4868
{
4969
"schema": "src/main/resources/authors/mysql/schema.sql",
5070
"queries": "src/main/resources/authors/mysql/query.sql",
5171
"engine": "mysql",
52-
"gen": {
53-
"kotlin": {
72+
"codegen": [
73+
{
5474
"out": "src/main/kotlin/com/example/authors/mysql",
55-
"package": "com.example.authors.mysql"
75+
"plugin": "kt",
76+
"options": {
77+
"package": "com.example.authors.mysql"
78+
}
5679
}
57-
}
80+
]
5881
},
5982
{
6083
"schema": "src/main/resources/booktest/mysql/schema.sql",
6184
"queries": "src/main/resources/booktest/mysql/query.sql",
6285
"engine": "mysql",
63-
"gen": {
64-
"kotlin": {
86+
"codegen": [
87+
{
6588
"out": "src/main/kotlin/com/example/booktest/mysql",
66-
"package": "com.example.booktest.mysql"
89+
"plugin": "kt",
90+
"options": {
91+
"package": "com.example.booktest.mysql"
92+
}
6793
}
68-
}
94+
]
6995
},
7096
{
7197
"schema": "src/main/resources/ondeck/mysql/schema",
7298
"queries": "src/main/resources/ondeck/mysql/query",
7399
"engine": "mysql",
74-
"gen": {
75-
"kotlin": {
100+
"codegen": [
101+
{
76102
"out": "src/main/kotlin/com/example/ondeck/mysql",
77-
"package": "com.example.ondeck.mysql"
103+
"plugin": "kt",
104+
"options": {
105+
"package": "com.example.ondeck.mysql"
106+
}
78107
}
79-
}
108+
]
80109
}
81110
]
82111
}

0 commit comments

Comments
 (0)