ComonOrmClient class
Entry point for ad-hoc access to models through a DatabaseAdapter.
Generated clients wrap this class, but it can also be used directly in tests or low-level integrations.
Constructors
- ComonOrmClient({required DatabaseAdapter adapter, RuntimeSchemaView? schemaView})
-
Creates a client backed by
adapter.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Releases resources owned by the underlying adapter.
-
model(
String name) → ModelDelegate -
Returns a delegate that enforces
namefor every query issued through it. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transaction<
T> (Future< T> action(ComonOrmClient tx)) → Future<T> -
Runs
actioninside an adapter-managed transaction.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited