Skip to content

Releases: borissmidt/sqlc-gen-python

V1.3.2: add domain overrides

15 Jun 07:46

Choose a tag to compare

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 Decimal

v1.3.1

01 Jun 09:49

Choose a tag to compare

change :many to do execute().all() and not start a stream