Optionaloptions: AbstractQueryOptionsReadonlyconnectionOptional ReadonlyinstanceOptional ReadonlymodelReadonlysequelizeReadonlyuuidProtected_logThe SQL string to log.
A function receiving debug messages.
Optionalparameters: unknown[] | Record<string, unknown>Optional bound parameters to display when enabled.
A callback to be invoked after query execution to finalize logging.
Protected_parseApplies attribute-type parsing to an array of value objects.
Array of objects to parse in-place.
Optionalmodel: ModelStaticThe model providing attribute types for parsing.
OptionalincludeMap: IncludeMapInclude lookup map for nested parsing.
The same array instance after parsing.
Protected_parseParses a raw database value using the attribute's data-type parser when available.
The raw value to parse.
OptionalattributeType: NormalizedDataTypeThe normalized data type to parse with.
The parsed value, or the original value if no parser applies.
Protected_parseApplies attribute-type parsing to a single object. Descends into includes when present.
The object to mutate with parsed values.
Optionalmodel: ModelStaticThe model providing attribute types for parsing.
OptionalincludeMap: IncludeMapInclude lookup map for nested parsing.
The mutated values object.
ProtectedgetProtectedgetOptionalfield: stringProtectedhandleProtectedhandlePost-processes a SELECT result set according to the query options:
fieldMap is provided.raw and nest are set.The raw rows returned by the driver.
Raw objects or built model instances depending on options.
ProtectedisProtectedisProtectedisProtectedisProtectedisProtectedisProtectedisProtectedisProtectedisProtectedisProtectedisProtectedisOptional_parameters: unknownOptional_options: unknownStatic_groupGroups a flat array of JOINed rows into nested objects according to include definitions.
Algorithm overview:
resultMap keyed by hash to re-use previously materialized
containers and attach children in O(1) time.Complexity:
Raw rows as returned by the driver with dotted keys.
The root include options and model information.
Controls whether de-duplication is applied.
An array of nested objects ready for model-building or raw return.
Logs a SQL query with optional parameters and returns a function to log completion. When benchmarking is enabled, the completion logger emits timing information.