VersionedView constructor

VersionedView({
  1. required String entityName,
  2. required DatabaseConnectionUser attachedDatabase,
  3. required String createViewStmt,
  4. required List<GeneratedColumn<Object> Function(String)> columns,
  5. 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;