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
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -339,6 +339,7 @@ packages:
339
339
emit_result_struct_pointers: false
340
340
emit_params_struct_pointers: false
341
341
emit_methods_with_db_argument: false
342
+
emit_pointers_for_null_types: false
342
343
emit_enum_valid_method: false
343
344
emit_all_enum_values: false
344
345
json_tags_case_style: "camel"
@@ -383,6 +384,8 @@ Each mapping in the `packages` collection has the following keys:
383
384
- If true, parameters are passed as pointers to structs. Defaults to `false`.
384
385
- `emit_methods_with_db_argument`:
385
386
- If true, generated methods will accept a DBTX argument instead of storing a DBTX on the `*Queries` struct. Defaults to `false`.
387
+
- `emit_pointers_for_null_types`:
388
+
- 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`.
386
389
- `emit_enum_valid_method`:
387
390
- If true, generate a Valid method on enum types,
388
391
indicating whether a string is a valid enum value.
0 commit comments