Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/howto/generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ an up-to-date schema. Here's a minimal working configuration:
version: "2"
servers:
- engine: postgresql
uri: "postgres://locahost:5432/postgres?sslmode=disable"
uri: "postgres://localhost:5432/postgres?sslmode=disable"
sql:
- engine: "postgresql"
queries: "query.sql"
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/datatypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ pgx supports any type whose underlying type is `[16]byte`, and as of Go 1.27
bound via `driver.DefaultParameterConverter` and results are scanned into
`uuid.UUID` and `*uuid.UUID` destinations, with `nil` representing `NULL`.

For MySQL, there is no native `uuid` data type. When using `UUID_TO_BIN` to store a `UUID()`, the underlying field type is `BINARY(16)` which by default sqlc would map to `sql.NullString`. To have sqlc automatically convert these fields to a `uuid.UUID` type, use an overide on the column storing the `uuid`
For MySQL, there is no native `uuid` data type. When using `UUID_TO_BIN` to store a `UUID()`, the underlying field type is `BINARY(16)` which by default sqlc would map to `sql.NullString`. To have sqlc automatically convert these fields to a `uuid.UUID` type, use an override on the column storing the `uuid`
(see [Overriding types](../howto/overrides.md) for details).

```json
Expand Down