Skip to content

Commit 6281395

Browse files
Clarify option package support (#2513)
The emit_pointers_for_null_types option supports both pgx/v4 and pgx/v5 according to the tests: https://github.com/kyleconroy/sqlc/tree/main/internal/endtoend/testdata/emit_pointers_for_null_types Ensure that this is clear in the documentation.
1 parent 7d5103a commit 6281395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ Each mapping in the `packages` collection has the following keys:
502502
- `emit_methods_with_db_argument`:
503503
- If true, generated methods will accept a DBTX argument instead of storing a DBTX on the `*Queries` struct. Defaults to `false`.
504504
- `emit_pointers_for_null_types`:
505-
- If true and `sql_package` is set to `pgx/v4`, generated types for nullable columns are emitted as pointers (ie. `*string`) instead of `database/sql` null types (ie. `NullString`). Defaults to `false`.
505+
- If true and `sql_package` is set to `pgx/v4` or `pgx/v5`, generated types for nullable columns are emitted as pointers (ie. `*string`) instead of `database/sql` null types (ie. `NullString`). Defaults to `false`.
506506
- `emit_enum_valid_method`:
507507
- If true, generate a Valid method on enum types,
508508
indicating whether a string is a valid enum value.

0 commit comments

Comments
 (0)