platform/angel_migration/lib/src/schema.dart

16 lines
430 B
Dart
Raw Normal View History

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));
void alter(String tableName, void callback(Table table));
}