TableInfo class

Table information for DDL generation: the full definition a generator needs to emit a CREATE TABLE, or to rebuild one.

Constructors

TableInfo({required String name, required List<ColumnInfo> columns, Map<String, String> checks = const {}})
Table information for DDL generation: the full definition a generator needs to emit a CREATE TABLE, or to rebuild one.
const
TableInfo.fromMap(Map<String, dynamic> map)
Creates a TableInfo from a map representation.
factory

Properties

checks → Map<String, String>
Table-level CHECK constraints, by constraint name, as raw SQL expressions.
final
columns → List<ColumnInfo>
The columns in the table.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The table name.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

column(String name) → ColumnInfo?
The column named name, or null.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Converts this table info to a map representation.
toString() → String
A string representation of this object.
inherited

Operators

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