Selects the transaction connection used by subsequent execution.
Adapter-specific connection, or null to use the
Adapter's default connection behavior.
This Query.
Counts rows matching the current condition.
The count reported by the Adapter.
Deletes rows matching the current condition.
The Adapter-defined bulk-delete result.
Executes an Adapter-specific raw operation using the connection selected by conn.
Adapter-defined execute arguments.
The Adapter-defined execution result.
Replaces the selected fields.
A string is split on commas and trimmed. An array receives schema field-name checking, while strings remain available for Adapter-compatible expressions.
Comma-separated expression or logical field names.
This Query.
Finds rows using the current Query state.
By default, the result is an array of Yukari rows. Passing true returns
plain objects serialized through Field Types. single: true requests one
result and changes the return type to a row or null; noCache: true
tells the Adapter to bypass query caching. The boolean and options object
may be passed in either supported order.
Many rows by default, or one row when single: true.
Finds rows using the current Query state.
By default, the result is an array of Yukari rows. Passing true returns
plain objects serialized through Field Types. single: true requests one
result and changes the return type to a row or null; noCache: true
tells the Adapter to bypass query caching. The boolean and options object
may be passed in either supported order.
Many rows by default, or one row when single: true.
Finds rows using the current Query state.
By default, the result is an array of Yukari rows. Passing true returns
plain objects serialized through Field Types. single: true requests one
result and changes the return type to a row or null; noCache: true
tells the Adapter to bypass query caching. The boolean and options object
may be passed in either supported order.
Many rows by default, or one row when single: true.
Finds rows using the current Query state.
By default, the result is an array of Yukari rows. Passing true returns
plain objects serialized through Field Types. single: true requests one
result and changes the return type to a row or null; noCache: true
tells the Adapter to bypass query caching. The boolean and options object
may be passed in either supported order.
Optionaloptions: QueryFindManyOptionsMany rows by default, or one row when single: true.
Finds rows using the current Query state.
By default, the result is an array of Yukari rows. Passing true returns
plain objects serialized through Field Types. single: true requests one
result and changes the return type to a row or null; noCache: true
tells the Adapter to bypass query caching. The boolean and options object
may be passed in either supported order.
Many rows by default, or one row when single: true.
Finds rows using the current Query state.
By default, the result is an array of Yukari rows. Passing true returns
plain objects serialized through Field Types. single: true requests one
result and changes the return type to a row or null; noCache: true
tells the Adapter to bypass query caching. The boolean and options object
may be passed in either supported order.
Optionaloptions: QueryFindManyOptionsMany rows by default, or one row when single: true.
Finds rows using the current Query state.
By default, the result is an array of Yukari rows. Passing true returns
plain objects serialized through Field Types. single: true requests one
result and changes the return type to a row or null; noCache: true
tells the Adapter to bypass query caching. The boolean and options object
may be passed in either supported order.
Many rows by default, or one row when single: true.
Finds rows using the current Query state.
By default, the result is an array of Yukari rows. Passing true returns
plain objects serialized through Field Types. single: true requests one
result and changes the return type to a row or null; noCache: true
tells the Adapter to bypass query caching. The boolean and options object
may be passed in either supported order.
Many rows by default, or one row when single: true.
Finds rows using the current Query state.
By default, the result is an array of Yukari rows. Passing true returns
plain objects serialized through Field Types. single: true requests one
result and changes the return type to a row or null; noCache: true
tells the Adapter to bypass query caching. The boolean and options object
may be passed in either supported order.
Many rows by default, or one row when single: true.
Finds rows using the current Query state.
By default, the result is an array of Yukari rows. Passing true returns
plain objects serialized through Field Types. single: true requests one
result and changes the return type to a row or null; noCache: true
tells the Adapter to bypass query caching. The boolean and options object
may be passed in either supported order.
Many rows by default, or one row when single: true.
Finds one row by its primary-key value or values.
A Model with one primary key accepts the value directly. Composite keys require an object. With a configured Cache, this first attempts a Cache read; Cache errors fall back to the Adapter.
Primary-key value or composite-key object.
The matching row, or null.
Finds one row by its primary-key value or values.
A Model with one primary key accepts the value directly. Composite keys require an object. With a configured Cache, this first attempts a Cache read; Cache errors fall back to the Adapter.
Primary-key value or composite-key object.
The matching row, or null.
Finds one row by its primary-key value or values.
A Model with one primary key accepts the value directly. Composite keys require an object. With a configured Cache, this first attempts a Cache read; Cache errors fall back to the Adapter.
Primary-key value or composite-key object.
The matching row, or null.
Finds at most one row using the current Query state.
The first row, or null when no row matches.
Finds at most one row using the current Query state.
The first row, or null when no row matches.
Finds at most one row using the current Query state.
The first row, or null when no row matches.
Sets an Adapter-specific index hint.
Index name passed to the Adapter without interpretation.
This Query.
Sets the result count, or the offset and result count.
Strings and arrays are retained for v1 compatibility. Values are parsed as
base-10 integers, invalid values become 0, and at most two array entries
are used.
Count, comma-separated values, or [offset, count].
This Query.
Sets the result count, or the offset and result count.
Strings and arrays are retained for v1 compatibility. Values are parsed as
base-10 integers, invalid values become 0, and at most two array entries
are used.
This Query.
Replaces the current sort order.
Object forms provide schema field-name checking. String forms are parsed as comma-separated Adapter-compatible order expressions.
String, field-direction object, or an array of either form.
This Query.
Updates rows matching the current condition.
Availability, additional arguments, and the resolved value are determined by the selected Adapter.
Logical field values to write.
Adapter-defined additional arguments.
The Adapter-defined bulk-update result.
Replaces the current query condition.
A later call does not merge with an earlier condition. Use $and or $or
inside one condition when multiple branches are required.
Field-aware condition object.
This Query.
A mutable, chainable description of one database operation.
Builder methods replace or extend the current Query state and return this same instance. Start again from the Model when two independent operations need different conditions, fields, limits, or connections.