TableColumn class
A column that is part of a table.
- Inheritance
- Implemented types
- Implementers
- Available extensions
Constructors
- TableColumn.new(String name, ResolvedType _type, {ColumnDefinition? definition, bool isGenerated = false, bool isHidden = false})
Properties
-
constraints
→ List<
ColumnConstraint> -
The column constraints set on this column.
no setter
- containingSet ↔ ResultSet?
-
The result set containing this column, or null if this column is not part
of a known result set.
getter/setter pairinherited-setteroverride-getter
- definition → ColumnDefinition?
-
The definition in the AST that was used to create this column model.
final
- hasDefinition → bool
-
Whether this column has a definition from the ast.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- includedInResults → bool
-
Whether this column is included in results when running a select query
like
SELECT * FROM table
.no setteroverride - isGenerated → bool
-
Whether this column was created with a
GENERATED ALWAYS AS
column constraint.final - isHidden → bool
-
Whether this column is
HIDDEN
, as specified in https://www.sqlite.org/vtab.html#hidden_columns_in_virtual_tablesfinal - name → String
-
The name of this column in the result set.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → Column
-
Available on Column, provided by the UnaliasColumn extension
Attempts to resolve the source of this column, if this is an AvailableColumn or a CommonTableExpressionColumn that refers to another column.no setter - table ↔ Table?
-
The table this column belongs to.
getter/setter pair
- type → ResolvedType
-
The type of this column, which is available before any resolution happens
(we know it from the schema structure).
no setteroverride
- visibleToChildren → bool
-
Whether this referencable is still visible in child scopes. This doesn't
apply to many things, basically only to tables.
no setterinherited
Methods
-
applyTypeHint(
TypeHint hint) → void - Applies a type hint to this column.
-
humanReadableDescription(
) → String -
override
-
isAliasForRowId(
) → bool - Whether this column is an alias for the rowid, as defined in https://www.sqlite.org/lang_createtable.html#rowid
-
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 viasetMeta
and obtained viameta
. 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 viasetMeta
and obtained viameta
. 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