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
{{ message }}
Repository navigation
Commit 458231b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/reference/config.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ sql:
14
14
queries: "postgresql/query.sql"
15
15
engine: "postgresql"
16
16
gen:
17
-
go:
17
+
go:
18
18
package: "authors"
19
19
out: "postgresql"
20
20
database:
@@ -122,7 +122,7 @@ The `analyzer` mapping supports the following keys:
122
122
123
123
- `database`:
124
124
- If false, do not use the configured database for query analysis. Defaults to `true`.
125
-
125
+
126
126
### gen
127
127
128
128
The `gen` mapping supports the following keys:
@@ -159,6 +159,8 @@ The `gen` mapping supports the following keys:
159
159
- If true, generated methods will accept a DBTX argument instead of storing a DBTX on the `*Queries` struct. Defaults to `false`.
160
160
- `emit_pointers_for_null_types`:
161
161
- If true, generated types for nullable columns are emitted as pointers (ie. `*string`) instead of `database/sql` null types (ie. `NullString`). Currently only supported for PostgreSQL if `sql_package` is `pgx/v4` or `pgx/v5`, and for SQLite. Defaults to `false`.
162
+
- `emit_nullable_for_null_arrays`:
163
+
- If true, generated types for nullable columns with array types are emitted as list of nullable instead of a list of non-nullable. For example, `bool[]` SQL type is emitted as `[]sql.NullBool` instead of `[]bool` when the flag is set. Defaults to `false`.
162
164
- `emit_enum_valid_method`:
163
165
- If true, generate a Valid method on enum types,
164
166
indicating whether a string is a valid enum value.
@@ -255,18 +257,18 @@ Each mapping in the `plugins` collection has the following keys:
255
257
- The URL to fetch the WASM file. Supports the `https://` or `file://` schemes.
0 commit comments