VersionedView class final
A constructed from individual fields instead of being generated with a dedicated class.
- Implemented types
- Mixed-in types
Constructors
-
VersionedView({required String entityName, required String createViewStmt, required List<
SchemaColumn< columns, String? alias})Object> Function(String)> -
Create a view from the individual fields on
ViewInfo. - VersionedView.aliased({required VersionedView source, required String? alias})
-
Copy an alias to a
sourceview.
Properties
- alias → String?
-
When created through withAlias, an alias for this result set.
final
- aliasOrName → String
-
If an alias is set, the alias. Otherwise, the entityName for this
result set.
no setterinherited
-
columns
→ List<
SchemaColumn< Object> > -
The columns of this result set.
final
-
columnsByName
→ Map<
String, SchemaColumn< Object> > -
All columns, indexed by their name.
latefinalinherited
- createViewStmt → String
-
The
CREATE VIEWstatement to run when creating this view.final - entityName → String
-
The default name of this result set (if no alias is set).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- query → SelectStatement?
-
For views defined in Dart, the select statement backing this view.
no setteroverride
-
readsFrom
→ Set<
String> -
The names of tables that this view is reading from.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sqlDefinition → CustomComponent?
-
If query is not available, the generated SQL text for this view.
no setteroverride
Methods
-
asSelfType(
) → VersionedView -
Type-level hack: Result sets are supposed to inherit from the
Selftype they declare, so this returns justthis.override -
createMapperFromPositions(
DriftDialect dialect, List< ColumnPosition> positions) → RawRow? Function(RawRow p1) -
Like createMapperToDart, but with positions already resolved.
override
-
createMapperToDart(
DriftDialect dialect, ResultSetStructure structure) → RawRow? Function(RawRow p1) -
Creates a function that, when receiving a DriftRow, extracts columns for
this result set into the mapped
Rowtype.inherited -
mapFromCompanion(
Insertable< RawRow> companion, DriftDialect dialect) → RawRow -
Converts a
companionto the real model class,Row.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withAlias(
String alias) → VersionedView -
Returns a new instance of this result set with
aliasset to the given value.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited