DVModuleData class
How a module's generated models reach their data.
A module's models are generated from the module's own project, standing alone, so the mount-time answer cannot be written into them: the same module is mounted into different applications with different modes. They ask here instead, by their own module id, which the module's own pubspec declares.
A module nobody mounted is its own application: plain table names in the
configured database, which is what makes dart test inside a module
work without a parent.
Constructors
- DVModuleData(String moduleId)
-
const
Properties
- database → DVDatabaseAdapter
-
The database this module's models read and write.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- moduleId → String
-
The module's own id, from
dartvel.module.idin its pubspec.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
table(
String name) → String -
The table
nameresolves to, given how this module was mounted. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited