InsertMode enum Null safety

Enumeration of different insert behaviors. See the documentation on the individual fields for details.

Implemented types

Constants

insert → const InsertMode

A regular INSERT INTO statement. When a row with the same primary or unique key already exists, the insert statement will fail and an exception will be thrown. If the exception is caught, previous statements made in the same transaction will NOT be reverted.

const InsertMode(0)
insertOrAbort → const InsertMode

Identical to insert, included for the sake of completeness.

const InsertMode(4)
insertOrFail → const InsertMode

Like insert, but if multiple values are inserted with the same insert statement and one of them fails, the others will still be completed.

const InsertMode(5)
insertOrIgnore → const InsertMode

Like insert, but failures will be ignored.

const InsertMode(6)
insertOrReplace → const InsertMode

Like insert, but if a row with the same primary or unique key already exists, it will be deleted and re-created with the row being inserted.

const InsertMode(2)
insertOrRollback → const InsertMode

Similar to InsertMode.insertOrAbort, but it will revert the surrounding transaction if a constraint is violated, even if the thrown exception is caught.

const InsertMode(3)
replace → const InsertMode

Identical to InsertMode.insertOrReplace, included for the sake of completeness.

const InsertMode(1)
values → const List<InsertMode>

A constant List of the values in this enum, in order of their declaration.

const List<InsertMode>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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