UpdateKind enum

Classifies a TableUpdate by what kind of write happened - an insert, an update or a delete operation.

This information is used by drift to determine which triggers might be invoked by the write. For instance, an AFTER UPDATE ON table trigger would only be considered for UpdateKind.update.

Inheritance

Constructors

UpdateKind()
const

Values

insert → const UpdateKind

An insert statement ran on the affected table.

This will also be used for upserts.

update → const UpdateKind

An update statement ran on the affected table.

delete → const UpdateKind

A delete statement ran on the affected table.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<UpdateKind>
A constant List of the values in this enum, in order of their declaration.