CheckedTableSql constructor

CheckedTableSql(
  1. String sql, {
  2. TableSchema? before,
  3. TableSchema? after,
})

Records DDL with table-state conditions instead of assuming DDL is atomic.

Implementation

CheckedTableSql(this.sql, {this.before, this.after}) {
  if (before == null && after == null) {
    throw ArgumentError(
      'A checked table step needs a before or after schema.',
    );
  }
}