We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e634bb5 commit dd3b2b8Copy full SHA for dd3b2b8
docs/reference/config.md
@@ -98,6 +98,20 @@ Each override document has the following keys:
98
- `nullable`:
99
- If true, use this type when a column is nullable. Defaults to `false`.
100
101
+For more complicated import paths, the `go_type` can also be an object.
102
+
103
+```yaml
104
+version: "1"
105
+packages: [...]
106
+overrides:
107
+ - db_type: "uuid"
108
+ go_type:
109
+ - import: "a/b/v2"
110
+ package: "b"
111
+ type: "MyType"
112
+ pointer: false # or true
113
+```
114
115
## Per-Column Type Overrides
116
117
Sometimes you would like to override the Go type used in model or query generation for
0 commit comments