Skip to content

Commit 8a7a02c

Browse files
authored
docs: Missing emit_pointers_for_null_types configuration option in version 2 (#2682) (#2683)
1 parent 2b8f416 commit 8a7a02c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/reference/config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ The `gen` mapping supports the following keys:
138138
- If true, parameters are passed as pointers to structs. Defaults to `false`.
139139
- `emit_methods_with_db_argument`:
140140
- If true, generated methods will accept a DBTX argument instead of storing a DBTX on the `*Queries` struct. Defaults to `false`.
141+
- `emit_pointers_for_null_types`:
142+
- 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`.
141143
- `emit_enum_valid_method`:
142144
- If true, generate a Valid method on enum types,
143145
indicating whether a string is a valid enum value.

0 commit comments

Comments
 (0)