2019-02-14 17:15:34 +00:00
|
|
|
import 'table.dart';
|
|
|
|
|
|
|
|
abstract class Schema {
|
|
|
|
void drop(String tableName, {bool cascade: false});
|
|
|
|
|
|
|
|
void dropAll(Iterable<String> tableNames, {bool cascade: false}) {
|
|
|
|
tableNames.forEach((n) => drop(n, cascade: cascade));
|
|
|
|
}
|
|
|
|
|
|
|
|
void create(String tableName, void callback(Table table));
|
|
|
|
|
|
|
|
void createIfNotExists(String tableName, void callback(Table table));
|
|
|
|
|
2019-04-21 17:30:19 +00:00
|
|
|
void alter(String tableName, void callback(MutableTable table));
|
2019-02-14 17:15:34 +00:00
|
|
|
}
|