MariaDbSchema class
A MariaDB database schema generator
Constructors
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 -
inherited
-
compile(
) → String -
The SQL of the schema. A change of a column's type keeps the constraints
not given only when it is run, which reads them from the database.
inherited
-
create(
String tableName, void callback(Table table)) → void -
inherited
-
createIfNotExists(
String tableName, void callback(Table table)) → void -
inherited
-
drop(
String tableName, {bool cascade = false}) → void -
inherited
-
dropAll(
Iterable< String> tableNames, {bool cascade = false}) → void -
inherited
-
indexes(
String tableName, void callback(MutableIndexes table)) → void -
inherited
-
newAlterTable(
String tableName) → MariaDbAlterTable -
newIndexes(
String tableName) → MariaDbIndexes -
newTable(
) → MariaDbTable -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
MySQLConnection connection) → Future< int> -
Runs the SQL of the schema with
connection, in a transaction, and throws if it fails.inherited -
runWith(
{required Future< void> execute(String sql), required Future<List< query(String sql)}) → Future<List< >String?> >void> -
Runs the SQL of the schema with
execute, and reads the constraints of the columns whose types are changed withquery, asSchemaAlters.run.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited