Composer<Database extends GeneratedDatabase, CurrentTable extends Table> constructor
Composer<Database extends GeneratedDatabase, CurrentTable extends Table> (
- ComposerState<
Database, CurrentTable> $state
Base class for all composers
Any class that can be composed using the &
or |
operator is called a composable.
ComposableFilter and ComposableOrdering are examples of composable classes.
The Composer class is a top level manager for this operation.
filter((f) => f.id.equals(1) & f.name.equals('Bob'));
f
in this example is a Composer object, and f.id.equals(1)
returns a ComposableFilter object.
The Composer class is responsible for creating joins between tables, and passing them down to the composable classes.
Implementation
Composer(this.$state);