-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsqlc.yaml
More file actions
33 lines (32 loc) · 880 Bytes
/
Copy pathsqlc.yaml
File metadata and controls
33 lines (32 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "2"
plugins:
- name: python
wasm:
url: file://sqlc-gen-better-python.wasm
sha256: eb001e364c1b8088e47bb43d4c9addf51ed7249f97db2fd1052cc14893989bed
sql:
- schema: test/schema.sql
queries: test/queries.sql
engine: postgresql
codegen:
- out: test
plugin: python
options:
package: test
sql_driver: asyncpg
model_type: msgspec
emit_classes: true
omit_unused_models: false
emit_init_file: false
debug: true
docstrings: numpy
omit_typechecking_block: false
overrides:
- column: authors.bio
py_type:
import: collections
package: UserString
type: UserString
- db_type: pg_catalog.numeric
py_type:
type: float