ComposerState<Database extends GeneratedDatabase, CurrentTable extends Table> class

Constructors

ComposerState(Database db, CurrentTable table, [JoinBuilder? joinBuilder, List<Composer<GeneratedDatabase, Table>> parentComposers = const []])
A class which holds the state of the composer.

Properties

aliasedTable → CurrentTable
The table being managed by the composer. If the composer was created by a join, this will be the aliased table.
no setter
db → Database
The database instance used by the composer.
final
hashCode int
The hash code for this object.
no setterinherited
joinBuilder JoinBuilder?
The JoinBuilder used by the composer. If this composer wasn't created by a join, this will be null.
final
parentComposers List<Composer<GeneratedDatabase, Table>>
The list of parent composers.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
table → CurrentTable
This current table being managed by the composer without any aliases applies. Use aliasedTable to get the table with alias.
final

Methods

allJoinBuilders() Set<JoinBuilder>
Returns all the join builders from this composer and its parents.
composableBuilder<T, C extends GeneratedColumn<Object>>({required C column, required T builder(C column, Set<JoinBuilder> joinBuilders)}) → T
A helper method for creating objects that need that require the correct alias for the column and the needed join builders.
composerBuilder<T, CurrentColumn extends GeneratedColumn<Object>, RelatedTable extends Table, RelatedColumn extends GeneratedColumn<Object>>({required Composer<GeneratedDatabase, Table> composer, required CurrentColumn getCurrentColumn(CurrentTable), required RelatedTable referencedTable, required RelatedColumn getReferencedColumn(RelatedTable), required T builder(JoinBuilder joinBuilder, List<Composer<GeneratedDatabase, Table>> parentComposers)}) → T
A helper method for creating related composers.
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