View class
A database view. The information stored here will be used to resolve references and for type inference.
- Inheritance
- Implemented types
- Available Extensions
Constructors
-
View({required String name, required List<
ColumnWithType> resolvedColumns, CreateViewStatement? definition}) - Constructs a view from the known name and resolvedColumns.
Properties
- definition → CreateViewStatement?
-
The ast node that created this view
final
- escapedName → String
-
If name is a reserved sql keyword, wraps it in double ticks. Otherwise
just returns the name directly.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of this result set, as it appears in sql statements. This should
be the raw name, not an escaped version.
final
-
resolvedColumns
→ List<
ColumnWithType> -
The columns that will be returned when evaluating this query.
final
- resultSet → ResultSet
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visibleToChildren → bool
-
Whether this referencable is still visible in child scopes. This doesn't
apply to many things, basically only to tables.
no setteroverride
Methods
-
findColumn(
String name) → Column? -
inherited
-
humanReadableDescription(
) → String -
override
-
meta<
T> () → T? -
Returns the metadata of type
T
that might have been set on this node, or null if none was found. Nodes can have arbitrary annotations on them set via setMeta and obtained via meta. This mechanism is used to, for instance, attach variable scopes to a subtree.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setMeta<
T> (T value) → void -
Sets the metadata of type
T
to the specifiedvalue
. Nodes can have arbitrary annotations on them set via setMeta and obtained via meta. This mechanism is used to, for instance, attach variable scopes to a subtree.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited