DatabaseOperations<E extends Object, K> class abstract interface

Interface for executing database operations for a specific entity.

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

delete(K id) Future<void>
Deletes an entity by its primary key.
findAll({List<Sort>? sort, int? limit, int? offset}) Future<QueryResult>
Finds all entities.
findById(K id) Future<QueryResult>
Finds an entity by its primary key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(Map<String, dynamic> params, {bool isUpdate = false}) Future<QueryResult>
Saves an entity (insert or update).
saveEntity(E entity) Future<E>
Saves an entity (insert or update), handling conversion to/from managed state.
toString() String
A string representation of this object.
inherited

Operators

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