From 966347b6536cba7342501fecb87f81adff2ea756 Mon Sep 17 00:00:00 2001 From: haolin Date: Fri, 1 Sep 2023 21:43:40 +0800 Subject: [PATCH] docs: Missing emit_pointers_for_null_types configuration option in version 2 (#2682) --- docs/reference/config.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/reference/config.md b/docs/reference/config.md index a9e0c40ed3..355e9fa53d 100644 --- a/docs/reference/config.md +++ b/docs/reference/config.md @@ -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.