6db839928b
git-subtree-dir: packages/orm git-subtree-mainline:edfd785dfe
git-subtree-split:ceb58a25b5
15 lines
437 B
Dart
Executable file
15 lines
437 B
Dart
Executable file
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));
|
|
|
|
void alter(String tableName, void callback(MutableTable table));
|
|
}
|