OptionaltypeOptionalreplacementsReplacements for named (:param) or positional (?) placeholders For named: { username: 'john' } replaces :username in SQL For positional: ['john', 'smith'] replaces ? in order
OptionalrawReturn raw results without model instantiation
OptionalloggingWhether to log the query
OptionalbenchmarkWhen true, logs query execution time
OptionaltransactionTransaction to use for the query
OptionalretryRetry configuration for query execution On connection failure or retryable errors, retry up to max times
OptionalmapMap raw query results to a model instance When true, maps the result rows to ModelInstance objects using the provided model
OptionalmodelModel to use for mapping raw results to model instances Used together with mapToModel to create ModelInstance objects from raw query results
Query type - determines how results are processed Forces the query type for result handling