Skip to content

Commit 79e7a7a

Browse files
Adding unsigned db_type override documentation (#3304)
1 parent 3894823 commit 79e7a7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/howto/overrides.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ Each element in the `overrides` list has the following keys:
4040
- `go_struct_tag`:
4141
- A reflect-style struct tag to use in generated code, e.g. `a:"b" x:"y,z"`.
4242
If you want `json` or `db` tags for all fields, use `emit_json_tags` or `emit_db_tags` instead.
43+
- `unsigned`:
44+
- If `true`, sqlc will apply this override when a numeric db_type is unsigned.
45+
Note that this has no effect on `column` overrides. Defaults to `false`.
4346
- `nullable`:
4447
- If `true`, sqlc will apply this override when a column is nullable.
4548
Otherwise `sqlc` will apply this override when a column is non-nullable.

0 commit comments

Comments
 (0)