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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Each package document has the following keys:
70
70
71
71
## Type Overrides
72
72
73
-
The default mapping of PostgreSQL types to Go types only uses packages outside
73
+
The default mapping of PostgreSQL/MySQL types to Go types only uses packages outside
74
74
the standard library when it must.
75
75
76
76
For example, the `uuid` PostgreSQL type is mapped to `github.com/google/uuid`.
@@ -89,7 +89,7 @@ overrides:
89
89
Each override document has the following keys:
90
90
91
91
- `db_type`:
92
-
- The PostgreSQL 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).
92
+
- 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).
93
93
- `go_type`:
94
94
- A fully qualified name to a Go type to use in the generated code.
95
95
- `nullable`:
@@ -101,7 +101,7 @@ Sometimes you would like to override the Go type used in model or query generati
101
101
a specific field of a table and not on a type basis as described in the previous section.
102
102
103
103
This may be configured by specifying the `column` property in the override definition. `column`
104
-
should be of the form `table.column` buy you may be even more specify by specifying `schema.table.column`
104
+
should be of the form `table.column` but you can be even more specific by specifying `schema.table.column`
0 commit comments