SqliteSchema class

A SQLite database schema generator.

Constructors

SqliteSchema()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

alter(String tableName, void callback(MutableTable table)) → void
compile() → String
create(String tableName, void callback(Table table)) → void
createIfNotExists(String tableName, void callback(Table table)) → void
drop(String tableName, {bool cascade = false}) → void
Drops the table tableName. SQLite has no CASCADE, so cascade is ignored: with PRAGMA foreign_keys = ON, the rows that refer to the table must be deleted first.
dropAll(Iterable<String> tableNames, {bool cascade = false}) → void
inherited
indexes(String tableName, void callback(MutableIndexes table)) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(CommonDatabase database) → void
Runs the SQL of the schema on database, and throws if it fails. It is not run in a transaction of its own: SqliteMigrationRunner runs it in one with the record of its migration.
toString() → String
A string representation of this object.
inherited

Operators

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