platform/angel_migration/lib/src/schema.dart
2019-02-14 12:15:34 -05:00

15 lines
430 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(Table table));
}