NestedResultTable class
A nested table extracted from a **
column.
For instance, consider this query:
CREATE TABLE groups (id INTEGER NOT NULL PRIMARY KEY);
CREATE TABLE users (id INTEGER NOT NULL PRIMARY KEY);
CREATE TABLE members (
group INT REFERENCES ..,
user INT REFERENCES ...,
is_admin BOOLEAN
);
membersOf: SELECT users.**, members.is_admin FROM members
INNER JOIN users ON users.id = members.user;
The generated result set should now look like this:
class MembersOfResult {
final User users;
final bool isAdmin;
}
Knowing that User
should be extracted into a field is represented with a
NestedResultTable information as part of the result set.
- Inheritance
-
- Object
- NestedResult
- NestedResultTable
Constructors
- NestedResultTable(NestedStarResultColumn from, String name, MoorEntityWithResultSet table, {bool isNullable = true})
Properties
- compatibilityHashCode → int
-
hashCode that matches isCompatibleTo instead of
==
.no setteroverride - dartFieldName → String
-
no setter
- from → NestedStarResultColumn
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNullable → bool
-
final
- name → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- table → MoorEntityWithResultSet
-
final
Methods
-
isCompatibleTo(
NestedResult other) → bool -
Checks whether this is compatible to the
other
nested result, which is the case iff they have the same and read from the same table.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited