Skip to content

Commit 42a7cd6

Browse files
authored
Update config doc to show MySQL type overrides (#1248)
1 parent 6ee39cb commit 42a7cd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/reference/config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Each package document has the following keys:
7070

7171
## Type Overrides
7272

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
7474
the standard library when it must.
7575

7676
For example, the `uuid` PostgreSQL type is mapped to `github.com/google/uuid`.
@@ -89,7 +89,7 @@ overrides:
8989
Each override document has the following keys:
9090

9191
- `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).
9393
- `go_type`:
9494
- A fully qualified name to a Go type to use in the generated code.
9595
- `nullable`:
@@ -101,7 +101,7 @@ Sometimes you would like to override the Go type used in model or query generati
101101
a specific field of a table and not on a type basis as described in the previous section.
102102

103103
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`
105105
or `catalog.schema.table.column`.
106106

107107
```yaml

0 commit comments

Comments
 (0)