SqlFlavor class abstract
Use to add additional flavor to SQL statement before execution. For example, you can add "on conflict do nothing" as follows.
class YourEntity extends Entity
with SqlFlavorMixin implements SqlFlavor {
...
}
final e = new YourEntity(...);
e.insertFlavor = onConflictDoNothing;
e.save(access, null);
- Implementers
Constructors
Properties
- deleteFlavor → String Function(String sql, Map? data)?
-
A callback to return the adjusted SQL DELETE statement (
sql
).no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- insertFlavor → String Function(String sql, Map? data)?
-
A callback to return the adjusted SQL INSERT statement (
sql
).no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateFlavor → String Function(String sql, Map? data)?
-
A callback to return the adjusted SQL UPDATE statement (
sql
).no setter
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