SchemaEntityWithResultSet<Row extends Object, Self extends ResultSet<Row, Self> > class
abstract
interface
A generated table or view that appears in a schema.
- Implemented types
-
- DatabaseSchemaEntity
- ResultSet<
Row, Self>
- Available extensions
Properties
- alias → String?
-
When created through withAlias, an alias for this result set.
no setterinherited
- 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.
no setterinherited
-
columnsByName
→ Map<
String, SchemaColumn< Object> > -
All columns, indexed by their name.
latefinalinherited
- entityName → String
-
The (unalised) name of this entity in the database.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asSelfType(
) → Self -
Type-level hack: Result sets are supposed to inherit from the
Selftype they declare, so this returns justthis.inherited -
createMapperFromPositions(
DriftDialect dialect, List< ColumnPosition> positions) → Row? Function(RawRow) -
Like createMapperToDart, but with positions already resolved.
inherited
-
createMapperToDart(
DriftDialect dialect, ResultSetStructure structure) → Row? Function(RawRow) -
Creates a function that, when receiving a DriftRow, extracts columns for
this result set into the mapped
Rowtype.inherited -
mapFromCompanion(
Insertable< Row> companion, DriftDialect dialect) → Row -
Converts a
companionto the real model class,Row.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
statements(
DatabaseConnectionUser db) → TableOrViewStatements< Row, RS> -
Available on ResultSet<
Creates a TableOrViewStatements instance that can be used to create common select statements on this table or view.Row, RS> , provided by the GetTableOrViewStatements extension -
toString(
) → String -
A string representation of this object.
inherited
-
withAlias(
String alias) → Self -
Returns a new instance of this result set with
aliasset to the given value.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited