dropTable method

Future<void> dropTable(
  1. DatabaseSchema schema
)

Drop a table if it exists

Implementation

Future<void> dropTable(DatabaseSchema schema) async {
  final sql = schema.toDropTableSql(connection.databaseType);
  await connection.execute(sql);
}