View<Self, Row> class Null safety

A sqlite view.

In drift, views can only be declared in .drift files.

For more information on views, see the CREATE VIEW documentation from sqlite, or the entry on sqlitetutorial.net.

Inheritance
Implemented types
Available Extensions

Constructors

View(String entityName, String createViewStmt)
Creates an view model by the createViewStmt and its entityName. Mainly used by generated code.

Properties

$columns List<GeneratedColumn>
All columns from this table or view.
read-only, inherited
aliasedName String
The (potentially aliased) name of this table or view. [...]
read-only, inherited
asDslTable → Self
Type system sugar. Implementations are likely to inherit from both TableInfo and Tbl and can thus just return their instance.
read-only, inherited
createViewStmt String
The CREATE VIEW sql statement that can be used to create this view.
final
entityName String
The (unalised) name of this entity in the database.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createAlias(String alias) ResultSetImplementation<Self, Row>
Creates an alias of this table or view that will write the name alias when used in a query.
inherited
map(Map<String, dynamic> data, {String? tablePrefix}) → Row
Maps the given row returned by the database into the fitting data class.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited