SingleTableReferenceScope class

A reference scope that only allows a single added result set.

This is used for e.g. foreign key clauses (REFERENCES table (a, b, c)), where a, b and c can only refer to table.

Inheritance

Constructors

SingleTableReferenceScope(ReferenceScope parent, String addedTableName, ResultSetAvailableInStatement? addedTable)

Properties

addedTable ResultSetAvailableInStatement?
final
addedTableName String
final
expansionOfStarColumn List<Column>?
The list of column to which a * would expand to.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
parent ReferenceScope
final
resultSetAvailableToChildScopes Iterable<ResultSetAvailableInStatement>
All available result sets that can also be seen in child scopes.
no setterinherited
rootScope RootScope
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAlias(AstNode origin, ResultSet resultSet, String alias, {bool canUseUnqualifiedColumns = true}) → void
Registers a ResultSetAvailableInStatement to a TableAlias for the given resultSet.
inherited
addResolvedResultSet(String? name, ResultSetAvailableInStatement resultSet) → void
Adds an added result set to this scope.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveResultSetForReference(String name) ResultSetAvailableInStatement?
Attempts to find a result set that has been added to this scope, for instance because it was introduced in a FROM clause.
override
resolveResultSetToAdd(String name) ResultSet?
Attempts to find a result set that can be added to a scope.
inherited
resolveUnqualifiedReference(String columnName, {bool allowReferenceToResultColumn = false}) List<Column>
Attempts to resolve an unqualified reference from a columnName.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited