MssqlAffectedRowsSource enum
Where an affected-row count came from, so a caller can judge it.
The driver's own affectedRows is the sum of every row-count token the
batch produced, which on a table with a trigger includes the trigger
body's own writes. That number answers "how much did the server do", not
"how many of my rows changed", and the two are routinely different.
Values
- outputRows → const MssqlAffectedRowsSource
-
Counted from the rows the statement's own
OUTPUTclause produced. Exact: those rows are the rows the statement wrote. - immediateRowCount → const MssqlAffectedRowsSource
-
SELECT @@ROWCOUNTin the same batch, immediately after the statement. Exact only when no trigger ran, which is why it is used only then. - singleRowStatement → const MssqlAffectedRowsSource
-
A single-row statement that did not throw, so it wrote its one row.
- driverTotal → const MssqlAffectedRowsSource
-
The driver's batch total, with no way to attribute it. Reported as-is and marked, rather than dressed up as a per-statement count.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
values
→ const List<
MssqlAffectedRowsSource> - A constant List of the values in this enum, in order of their declaration.