Table class

A database table. The information stored here will be used to resolve references and for type inference.

Inheritance
Implemented types
Implementers
Available Extensions

Constructors

Table({required String name, required List<TableColumn> resolvedColumns, bool withoutRowId = false, bool isStrict = false, List<TableConstraint> tableConstraints = const [], TableInducingStatement? definition, bool isVirtual = false})
Constructs a table from the known name and resolvedColumns.

Properties

definition TableInducingStatement?
The ast node that created this table
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
isStrict bool
final
isVirtual bool
Whether this is a virtual table.
final
name String
The name of this table, as it appears in sql statements. This should be the raw name, not an escaped version.
final
resolvedColumns List<TableColumn>
The columns that will be returned when evaluating this query.
final
resultColumns List<TableColumn>
Filter the resolvedColumns for those that are Column.includedInResults.
no setter
resultSet ResultSet
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableConstraints List<TableConstraint>
Additional constraints set on this table.
final
visibleToChildren bool
Whether this referencable is still visible in child scopes. This doesn't apply to many things, basically only to tables.
no setteroverride
withoutRowId bool
Whether this table was created with an "WITHOUT ROWID" modifier
final

Methods

findColumn(String name) Column?
override
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 specified value. 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.
override

Operators

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