Skip to content

Commit

Permalink
docs: Missing emit_pointers_for_null_types configuration option in ve…
Browse files Browse the repository at this point in the history
…rsion 2 (#2682) (#2683)
  • Loading branch information
topazur committed Sep 5, 2023
1 parent 2b8f416 commit 8a7a02c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ The `gen` mapping supports the following keys:
- If true, parameters are passed as pointers to structs. Defaults to `false`.
- `emit_methods_with_db_argument`:
- If true, generated methods will accept a DBTX argument instead of storing a DBTX on the `*Queries` struct. Defaults to `false`.
- `emit_pointers_for_null_types`:
- 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`.
- `emit_enum_valid_method`:
- If true, generate a Valid method on enum types,
indicating whether a string is a valid enum value.
Expand Down

0 comments on commit 8a7a02c

Please sign in to comment.