Skip to content

Commit fbb5ab8

Browse files
docs: Minor cleanup in overrides doc (#2977)
1 parent 13141d9 commit fbb5ab8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/howto/overrides.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ sql:
3232
Each element in the `overrides` list has the following keys:
3333

3434
- `db_type`:
35-
- A database type to override. Find the full list of supported types in [postgresql_type.go](https://github.com/sqlc-dev/sqlc/blob/main/internal/codegen/golang/postgresql_type.go#L12) or [mysql_type.go](https://github.com/sqlc-dev/sqlc/blob/main/internal/codegen/golang/mysql_type.go#L12). Note that for Postgres you must use pg_catalog-prefixed names where available. And note that `db_type` and `column` are mutually exclusive.
35+
- A database type to override. Find the full list of supported types in [postgresql_type.go](https://github.com/sqlc-dev/sqlc/blob/main/internal/codegen/golang/postgresql_type.go#L12) or [mysql_type.go](https://github.com/sqlc-dev/sqlc/blob/main/internal/codegen/golang/mysql_type.go#L12). Note that for Postgres you must use pg_catalog-prefixed names where available. `db_type` and `column` are mutually exclusive.
3636
- `column`:
37-
- A column name to override. The value should be of the form `table.column` but you can also specify `schema.table.column` or `catalog.schema.table.column`. Note that `column` and `db_type` are mutually exclusive.
37+
- A column name to override. The value should be of the form `table.column` but you can also specify `schema.table.column` or `catalog.schema.table.column`. `column` and `db_type` are mutually exclusive.
3838
- `go_type`:
39-
- The fully-qualified name of a Go type to use in generated code. This is usually a string but can also be [a map](#the-go_type-map) for more complex configurations.
39+
- The fully-qualified name of a Go type to use in generated code. This is usually a string but can also be [a map](#the-go-type-map) for more complex configurations.
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.

0 commit comments

Comments
 (0)