MssqlCursor class

A keyset bookmark for MssqlEntityQuery.cursorPage.

Carries a format version, signatures of the ordering and of the filter (scopes and predicates, with bound values), and the typed key values of the last seen row. Those values are bound as parameters on the next page; they are never spliced into SQL.

A keyset is not a snapshot. Ordering by a nullable or a mutable column can skip or repeat rows when another session changes those values. Put a unique, immutable key — the primary key — last in orderBy.

Annotations
  • @immutable

Constructors

MssqlCursor({required int version, required String orderSignature, required String filterSignature, required List<Object?> keys})
const

Properties

filterSignature String
final
hashCode int
The hash code for this object.
no setterinherited
keys List<Object?>
Order-column values from the row this cursor sits on, in order-term order. Bound as parameters; never concatenated into SQL.
final
orderSignature String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

formatVersion → const int
Format this package writes today. A newer package refuses an older token rather than guessing how to decode it.