Table class final

A table definition: a name, its columns, and any indexes.

Constructors

Table(String name, List<Column> columns, {List<Index> indexes = const []})
Creates a table named name with the given columns and indexes.
const

Properties

columns → List<Column>
Columns of the table, in declaration order.
final
hashCode → int
The hash code for this object.
no setterinherited
indexes → List<Index>
Indexes created alongside the table.
final
name → String
Table name as written in SQL.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCreateTableSql() → String
Renders the CREATE TABLE IF NOT EXISTS statement.
toString() → String
A string representation of this object.
inherited

Operators

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