MoorTable constructor

MoorTable({
  1. ClassElement? fromClass,
  2. List<MoorColumn> columns = const [],
  3. required String sqlName,
  4. required String dartTypeName,
  5. Set<MoorColumn>? primaryKey,
  6. List<Set<MoorColumn>>? uniqueKeys,
  7. String? overriddenName,
  8. bool? overrideWithoutRowId,
  9. List<String>? overrideTableConstraints,
  10. bool? overrideDontWriteConstraints,
  11. TableDeclaration? declaration,
  12. ExistingRowClass? existingRowClass,
  13. String? customParentClass,
  14. bool isStrict = false,
})

Implementation

MoorTable({
  this.fromClass,
  this.columns = const [],
  required this.sqlName,
  required this.dartTypeName,
  this.primaryKey,
  this.uniqueKeys,
  String? overriddenName,
  this.overrideWithoutRowId,
  this.overrideTableConstraints,
  this.overrideDontWriteConstraints,
  this.declaration,
  this.existingRowClass,
  this.customParentClass,
  this.isStrict = false,
}) : _overriddenName = overriddenName {
  _attachToConverters();
}