TableDefinition class

Represents a table definition.

Constructors

TableDefinition({required String name, required bool createIfNotExists, required Map<String, ColumnDefinition> columns, required Map<String, ForeignKeyDefinition> foreignKeys})
Creates a new TableDefinition.

Properties

columns → Map<String, ColumnDefinition>
The columns in the table.
final
createIfNotExists → bool
Whether to create the table if it doesn't exist.
final
foreignKeys → Map<String, ForeignKeyDefinition>
The foreign keys in the table.
final
hasForeignKeys → bool
Whether the table has foreign keys.
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
The name of the table.
final
primaryKey → String?
Gets the primary key column name.
no setter
primaryKeyColumn → ColumnDefinition?
Gets the primary key column definition.
no setter
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
toString() → String
A string representation of this object.
override

Operators

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