|
1 | 1 | {
|
2 | 2 | "version": "2",
|
| 3 | + "plugins": [ |
| 4 | + { |
| 5 | + "name": "kt", |
| 6 | + "process": { |
| 7 | + "cmd": "sqlc-gen-kotlin" |
| 8 | + } |
| 9 | + } |
| 10 | + ], |
3 | 11 | "sql": [
|
4 | 12 | {
|
5 | 13 | "schema": "src/main/resources/authors/postgresql/schema.sql",
|
6 | 14 | "queries": "src/main/resources/authors/postgresql/query.sql",
|
7 | 15 | "engine": "postgresql",
|
8 |
| - "gen": { |
9 |
| - "kotlin": { |
| 16 | + "codegen": [ |
| 17 | + { |
10 | 18 | "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 | + } |
12 | 23 | }
|
13 |
| - } |
| 24 | + ] |
14 | 25 | },
|
15 | 26 | {
|
16 | 27 | "schema": "src/main/resources/ondeck/postgresql/schema",
|
17 | 28 | "queries": "src/main/resources/ondeck/postgresql/query",
|
18 | 29 | "engine": "postgresql",
|
19 |
| - "gen": { |
20 |
| - "kotlin": { |
| 30 | + "codegen": [ |
| 31 | + { |
21 | 32 | "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 | + } |
23 | 37 | }
|
24 |
| - } |
| 38 | + ] |
25 | 39 | },
|
26 | 40 | {
|
27 | 41 | "schema": "src/main/resources/jets/schema.sql",
|
28 | 42 | "queries": "src/main/resources/jets/query-building.sql",
|
29 | 43 | "engine": "postgresql",
|
30 |
| - "gen": { |
31 |
| - "kotlin": { |
| 44 | + "codegen": [ |
| 45 | + { |
| 46 | + "plugin": "kt", |
32 | 47 | "out": "src/main/kotlin/com/example/jets",
|
33 |
| - "package": "com.example.jets" |
| 48 | + "options": { |
| 49 | + "package": "com.example.jets" |
| 50 | + } |
34 | 51 | }
|
35 |
| - } |
| 52 | + ] |
36 | 53 | },
|
37 | 54 | {
|
38 | 55 | "schema": "src/main/resources/booktest/postgresql/schema.sql",
|
39 | 56 | "queries": "src/main/resources/booktest/postgresql/query.sql",
|
40 | 57 | "engine": "postgresql",
|
41 |
| - "gen": { |
42 |
| - "kotlin": { |
| 58 | + "codegen": [ |
| 59 | + { |
43 | 60 | "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 | + } |
45 | 65 | }
|
46 |
| - } |
| 66 | + ] |
47 | 67 | },
|
48 | 68 | {
|
49 | 69 | "schema": "src/main/resources/authors/mysql/schema.sql",
|
50 | 70 | "queries": "src/main/resources/authors/mysql/query.sql",
|
51 | 71 | "engine": "mysql",
|
52 |
| - "gen": { |
53 |
| - "kotlin": { |
| 72 | + "codegen": [ |
| 73 | + { |
54 | 74 | "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 | + } |
56 | 79 | }
|
57 |
| - } |
| 80 | + ] |
58 | 81 | },
|
59 | 82 | {
|
60 | 83 | "schema": "src/main/resources/booktest/mysql/schema.sql",
|
61 | 84 | "queries": "src/main/resources/booktest/mysql/query.sql",
|
62 | 85 | "engine": "mysql",
|
63 |
| - "gen": { |
64 |
| - "kotlin": { |
| 86 | + "codegen": [ |
| 87 | + { |
65 | 88 | "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 | + } |
67 | 93 | }
|
68 |
| - } |
| 94 | + ] |
69 | 95 | },
|
70 | 96 | {
|
71 | 97 | "schema": "src/main/resources/ondeck/mysql/schema",
|
72 | 98 | "queries": "src/main/resources/ondeck/mysql/query",
|
73 | 99 | "engine": "mysql",
|
74 |
| - "gen": { |
75 |
| - "kotlin": { |
| 100 | + "codegen": [ |
| 101 | + { |
76 | 102 | "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 | + } |
78 | 107 | }
|
79 |
| - } |
| 108 | + ] |
80 | 109 | }
|
81 | 110 | ]
|
82 | 111 | }
|
0 commit comments