|
1 | 1 | { |
2 | 2 | "version": "2", |
| 3 | + "plugins": [ |
| 4 | + { |
| 5 | + "name": "py", |
| 6 | + "wasm": { |
| 7 | + "url": "https://github.com/tabbed/sqlc-gen-python/releases/download/v0.16.0-alpha/sqlc-gen-python.wasm", |
| 8 | + "sha256": "428476c7408fd4c032da4ec74e8a7344f4fa75e0f98a5a3302f238283b9b95f2" |
| 9 | + }, |
| 10 | + } |
| 11 | + ], |
3 | 12 | "sql": [ |
4 | 13 | { |
5 | 14 | "schema": "../authors/postgresql/schema.sql", |
6 | 15 | "queries": "../authors/postgresql/query.sql", |
7 | 16 | "engine": "postgresql", |
8 | | - "gen": { |
9 | | - "python": { |
| 17 | + "codegen": [ |
| 18 | + { |
10 | 19 | "out": "src/authors", |
11 | | - "package": "authors", |
12 | | - "emit_sync_querier": true, |
13 | | - "emit_async_querier": true, |
14 | | - "query_parameter_limit": 5 |
| 20 | + "plugin": "py", |
| 21 | + "options": { |
| 22 | + "package": "authors", |
| 23 | + "emit_sync_querier": true, |
| 24 | + "emit_async_querier": true, |
| 25 | + "query_parameter_limit": 5 |
| 26 | + } |
15 | 27 | } |
16 | | - } |
| 28 | + ] |
17 | 29 | }, |
18 | 30 | { |
19 | 31 | "schema": "../booktest/postgresql/schema.sql", |
20 | 32 | "queries": "../booktest/postgresql/query.sql", |
21 | 33 | "engine": "postgresql", |
22 | | - "gen": { |
23 | | - "python": { |
| 34 | + "codegen": [ |
| 35 | + { |
24 | 36 | "out": "src/booktest", |
25 | | - "package": "booktest", |
26 | | - "emit_async_querier": true, |
27 | | - "query_parameter_limit": 5 |
| 37 | + "plugin": "py", |
| 38 | + "options": { |
| 39 | + "package": "booktest", |
| 40 | + "emit_async_querier": true, |
| 41 | + "query_parameter_limit": 5 |
| 42 | + } |
28 | 43 | } |
29 | | - } |
| 44 | + ] |
30 | 45 | }, |
31 | 46 | { |
32 | 47 | "schema": "../jets/schema.sql", |
33 | 48 | "queries": "../jets/query-building.sql", |
34 | 49 | "engine": "postgresql", |
35 | | - "gen": { |
36 | | - "python": { |
| 50 | + "codegen": [ |
| 51 | + { |
37 | 52 | "out": "src/jets", |
38 | | - "package": "jets", |
39 | | - "emit_async_querier": true, |
40 | | - "query_parameter_limit": 5 |
| 53 | + "plugin": "py", |
| 54 | + "options": { |
| 55 | + "package": "jets", |
| 56 | + "emit_async_querier": true, |
| 57 | + "query_parameter_limit": 5 |
| 58 | + } |
41 | 59 | } |
42 | | - } |
| 60 | + ] |
43 | 61 | }, |
44 | 62 | { |
45 | 63 | "schema": "../ondeck/postgresql/schema", |
46 | 64 | "queries": "../ondeck/postgresql/query", |
47 | 65 | "engine": "postgresql", |
48 | | - "gen": { |
49 | | - "python": { |
| 66 | + "codegen": [ |
| 67 | + { |
50 | 68 | "out": "src/ondeck", |
51 | | - "package": "ondeck", |
52 | | - "emit_async_querier": true, |
53 | | - "query_parameter_limit": 5 |
| 69 | + "plugin": "py", |
| 70 | + "options": { |
| 71 | + "package": "ondeck", |
| 72 | + "emit_async_querier": true, |
| 73 | + "query_parameter_limit": 5 |
| 74 | + } |
54 | 75 | } |
55 | | - } |
| 76 | + ] |
56 | 77 | } |
57 | 78 | ] |
58 | 79 | } |
0 commit comments