VersionedView constructor
VersionedView({
- required String entityName,
- required DatabaseConnectionUser attachedDatabase,
- required String createViewStmt,
- required List<
GeneratedColumn< columns,Object> Function(String)> - String? alias,
Create a view from the individual fields on ViewInfo.
Implementation
VersionedView({
required this.entityName,
required this.attachedDatabase,
required this.createViewStmt,
required List<GeneratedColumn Function(String)> columns,
String? alias,
}) : _columnFactories = columns,
$columns = [for (final column in columns) column(alias ?? entityName)],
_alias = alias;