Trigger class final
A sqlite trigger that's executed before, after or instead of a subset of
writes on a specific tables.
In drift, triggers can only be declared in .drift files.
For more information on triggers, see the CREATE TRIGGER documentation from sqlite, or the entry on sqlitetutorial.net.
- Inheritance
-
- Object
- DatabaseSchemaEntity
- Trigger
Constructors
- Trigger(String entityName, CustomComponent definition)
- Creates a trigger from its name and the (possibly dialect-specific) definition generator.
Properties
- definition → CustomComponent
-
A function responsible for writing the
CREATE TRIGGERdefinition given a StatementCompiler.final - entityName → String
-
The (unalised) name of this entity in the database.
final
- hashCode → int
-
The hash code for this object.
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