ClientDefaults
ClientDefaults sets the fallback values used to resolve
QueryExecuteOptions whenever a given option isn't passed to a
specific execute() call. Pass it as ClientConfiguration.defaults. See
Executing Queries for the full
option-resolution table and the verified runtime defaults.
interface ClientDefaults {
autoCommit?: boolean;
cursor?: boolean;
objectRows?: boolean;
fieldNaming?: FieldNaming;
showSql?: boolean;
prettyPrint?: boolean;
ignoreNulls?: boolean;
fetchRows?: number;
transform?: ValueTransformFunction;
}
| Field | Type | Runtime default if unset | Description |
|---|---|---|---|
autoCommit | boolean | true (outside a transaction) | See the autoCommit note — a stale inline comment in the source claims false. |
cursor | boolean | false | Whether queries return a Cursor instead of buffered rows. |
objectRows | boolean | true | A stale inline comment in the source claims "driver default"; the actual fallback is hard-coded to true. |
fieldNaming | FieldNaming | none (original names) | Renaming strategy applied to result field names. |
showSql | boolean | false | Whether QueryResult.query is populated with the executed request. |
prettyPrint | boolean | false | Whether generated SQL is pretty-printed. |
ignoreNulls | boolean | false | Drops null fields from object rows; forced to false whenever objectRows is false. |
fetchRows | number | 100 | A stale inline comment in the source claims 10; the actual fallback coded in _prepareQueryRequest() is 100. |
transform | ValueTransformFunction | none | (value: any, fieldInfo?: FieldInfo) => any run over every field value as rows are normalized. |