You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/config.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,8 @@ The `gen` mapping supports the following keys:
138
138
- If true, parameters are passed as pointers to structs. Defaults to `false`.
139
139
- `emit_methods_with_db_argument`:
140
140
- 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`.
141
143
- `emit_enum_valid_method`:
142
144
- If true, generate a Valid method on enum types,
143
145
indicating whether a string is a valid enum value.
0 commit comments