CustomComponent class final
A custom component, used to embed a fixed SQL string into drift-generated statements.
- Implemented types
Constructors
-
CustomComponent(String fallbackSql, {Map<
KnownSqlDialect, String> dialectSpecificSql = const {}, Iterable<SchemaEntityWithResultSet< watchedTables = const []})Object, ResultSet< >Object, dynamic> > -
Creates a custom component instance from the SQL text.
const
Properties
-
dialectSpecificSql
→ Map<
KnownSqlDialect, String> -
Dialect-specific overrides for the SQL text to generate.
final
- fallbackSql → String
-
The SQL string to use for dialects not contained in dialectSpecificSql.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
watchedTables
→ Iterable<
SchemaEntityWithResultSet< Object, ResultSet< >Object, dynamic> > -
Additional tables that this SQL construct is watching.
final
Methods
-
compileWith(
StatementCompiler compiler) → void -
Compiles this component with the given StatementCompiler by invoking the
relevant
addmethod on it.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sqlFor(
KnownSqlDialect? dialect) → String - The SQL text to generate for the specific KnownSqlDialect.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override