Table constructor

Table(
  1. String name,
  2. List<ColumnDef> columns, {
  3. List<TableConstraint>? constraints,
  4. bool strict = false,
  5. bool withoutRowid = false,
})

Implementation

Table(this.name, this.columns,
    {List<TableConstraint>? constraints,
    this.strict = false,
    this.withoutRowid = false})
    : constraints = List<TableConstraint>.from(constraints ?? const []),
      rows = <List<Object?>>[],
      indexDefs = <String, IndexDef>{},
      indexes = <String, SplayTreeMap<Object, List<int>>>{},
      autoInc = <String, int>{};