You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/config.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -225,6 +225,9 @@ Each override document has the following keys:
225
225
- The PostgreSQL or MySQL type to override. Find the full list of supported types in [postgresql_type.go](https://github.com/kyleconroy/sqlc/blob/main/internal/codegen/golang/postgresql_type.go#L12) or [mysql_type.go](https://github.com/kyleconroy/sqlc/blob/main/internal/codegen/golang/mysql_type.go#L12). Note that for Postgres you must use the pg_catalog prefixed names where available.
226
226
- `go_type`:
227
227
- A fully qualified name to a Go type to use in the generated code.
228
+
- `go_struct_tag`:
229
+
- A reflect-style struct tag to use in the generated code, e.g. `a:"b" x:"y,z"`.
230
+
If you want general json/db tags for all fields, use `emit_db_tags` and/or `emit_json_tags` instead.
228
231
- `nullable`:
229
232
- If true, use this type when a column is nullable. Defaults to `false`.
0 commit comments