Releases: borissmidt/sqlc-gen-python
Releases · borissmidt/sqlc-gen-python
V1.3.2: add domain overrides
Add a feature to add domain overrides:
Currently the upstream SQLC does not pass domain types to plugins so we can't generate an enum in the case of:
CREATE DOMAIN job_status AS text
CHECK (
VALUE IN (
'QUEUED',
'PENDING',
'RUNNING',
'COMPLETED',
'FAILED'
)) NOT NULL;options:
package: authors
domain_overrides:
job_status: my.module.JobStatus # overrides the domain job_status with a specific type
positive_int: decimal.Decimal # override the positive_int with a Decimalv1.3.1
change :many to do execute().all() and not start a stream