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