Skip to content
This repository has been archived by the owner on Apr 21, 2024. It is now read-only.

Commit

Permalink
fix: pgx broke JSON responses
Browse files Browse the repository at this point in the history
  • Loading branch information
GetPsyched committed Oct 6, 2023
1 parent 733105b commit 75da5fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sqlc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ sql:
sql_package: "pgx/v5"
emit_json_tags: true
json_tags_case_style: "snake"
overrides:
- db_type: jsonb
go_type:
import: "encoding/json"
type: "RawMessage"
- db_type: jsonb
go_type:
import: "encoding/json"
type: "RawMessage"
nullable: true

0 comments on commit 75da5fd

Please sign in to comment.