TableDeclaration class

Constructors

TableDeclaration({required String tableName, required String className})
TableDeclaration.fromMap(Map map)

Properties

className String
getter/setter pair
fields List<FieldDeclaration>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
indexes List<IndexDeclaration>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tableName String
getter/setter pair
uniqueIndexes List<UniqueDeclaration>
getter/setter pair

Methods

alterTableAddColumn(FieldDeclaration field) String
alterTableDropColumn(FieldDeclaration field) String
alterTableModify(FieldDeclaration current, FieldDeclaration latest) String
asMap() Map<String, dynamic>
compareWith(TableDeclaration otherTable) String
createIndexSQL(IndexDeclaration idx) String
createScript() String
createUniqueSQL(UniqueDeclaration idx) String
dropIndexSQL(IndexDeclaration idx) String
dropTableSql() String
dropUniqueSQL(UniqueDeclaration idx) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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