Fix type overrides

See https://github.com/kyleconroy/sqlc/issues/819
This commit is contained in:
Jan Bader 2021-12-02 21:50:46 +00:00
parent c56335adad
commit 223064698e
2 changed files with 5 additions and 3 deletions

View File

@ -60,7 +60,7 @@ type GetTransactionsForAccountRow struct {
ID uuid.UUID
Date time.Time
Memo string
Amount postgres.Numeric
Amount Numeric
Account string
Payee string
}

View File

@ -6,8 +6,10 @@ packages:
schema: "postgres/schema/"
queries: "postgres/queries/"
overrides:
- go_type: "git.javil.eu/jacob1123/budgeteer/postgres.Numeric"
- go_type:
type: "Numeric"
db_type: "pg_catalog.numeric"
- go_type: "git.javil.eu/jacob1123/budgeteer/postgres.Numeric"
- go_type:
type: "Numeric"
db_type: "pg_catalog.numeric"
nullable: true