DatabaseSchema class
Database schema representation for entities
- Available extensions
Constructors
-
DatabaseSchema({required String tableName, required List columns, List<
ForeignKey> ? foreignKeys, List<IndexSchema> ? indexes, List<String> ? primaryKeyColumns, List<UniqueConstraint> ? uniqueConstraints, List<CheckConstraint> ? checkConstraints}) -
const
Properties
-
checkConstraints
→ List<
CheckConstraint> ? -
final
- columns → List
-
final
-
foreignKeys
→ List<
ForeignKey> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
indexes
→ List<
IndexSchema> ? -
final
-
primaryKeyColumns
→ List<
String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tableName → String
-
final
-
uniqueConstraints
→ List<
UniqueConstraint> ? -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toAllSql(
DatabaseType dbType) → List< String> -
Available on DatabaseSchema, provided by the DatabaseSchemaToSql extension
Generate all SQL statements for this schema -
toCreateIndexSql(
DatabaseType dbType) → List< String> -
Available on DatabaseSchema, provided by the DatabaseSchemaToSql extension
Generate CREATE INDEX SQL statements with IF NOT EXISTS -
toCreateTableSql(
DatabaseType dbType) → String -
Available on DatabaseSchema, provided by the DatabaseSchemaToSql extension
Generate CREATE TABLE SQL with IF NOT EXISTS -
toDropTableSql(
DatabaseType dbType) → String -
Available on DatabaseSchema, provided by the DatabaseSchemaToSql extension
Generate DROP TABLE SQL -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited