Table<T_ID> class

Represents a database table.

Implementers

Constructors

Table({required String tableName, TableRelation? tableRelation})
Creates a new Table. Typically, this is done only by generated code.

Properties

columns → List<Column>
List of Column used by the table.
no setter
hasColumnMapping → bool
Cached flag indicating whether any columns have explicit column names that differ from their field names. Computed lazily on first access.
latefinal
hashCode → int
The hash code for this object.
no setterinherited
id ↔ ColumnComparable<T_ID>
The database id.
latefinal
managedColumns → List<Column>
List of Column that are managed by this table. This is mostly used to exclude columns created by implicit relations.
no setter
queryPrefix → String
Query prefix for Columns of the table.
no setter
quotedTableName → String
tableName quoted for the current dialect. Prefer it over tableName in raw SQL, since dialects quote schemas differently.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schema → String?
Schema part of tableName, or null when the name is unqualified.
latefinal
tableName → String
Name of the table as used in the database, optionally qualified as schema.table.
final
tableRelation → TableRelation?
Table relation for Columns of the table.
final
unqualifiedTableName → String
tableName with the schema removed.
latefinal

Methods

getRelationTable(String relationField) → Table?
Returns TableColumnRelation for the given relationField. If no relation exists, returns null. The return must be dynamic to allow for relations with different id types.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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