Skip to content

Commit

Permalink
docs: Add more documentation for go_type (#1432)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleconroy committed Feb 11, 2022
1 parent e634bb5 commit dd3b2b8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/reference/config.md
Expand Up @@ -98,6 +98,20 @@ Each override document has the following keys:
- `nullable`:
- If true, use this type when a column is nullable. Defaults to `false`.

For more complicated import paths, the `go_type` can also be an object.

```yaml
version: "1"
packages: [...]
overrides:
- db_type: "uuid"
go_type:
- import: "a/b/v2"
package: "b"
type: "MyType"
pointer: false # or true
```

## Per-Column Type Overrides

Sometimes you would like to override the Go type used in model or query generation for
Expand Down

0 comments on commit dd3b2b8

Please sign in to comment.