VersionedTable.aliased constructor
VersionedTable.aliased({
- required VersionedTable source,
- required String? alias,
Create a table by copying fields from source
and applying an alias
.
Implementation
VersionedTable.aliased({
required VersionedTable source,
required String? alias,
}) : entityName = source.entityName,
isStrict = source.isStrict,
withoutRowId = source.withoutRowId,
attachedDatabase = source.attachedDatabase,
customConstraints = source.customConstraints,
_columnFactories = source._columnFactories,
$columns = [
for (final column in source._columnFactories)
column(alias ?? source.entityName)
],
_alias = alias;