BaseRepository<T extends BaseEntity> class abstract

Implementers

Constructors

BaseRepository()

Properties

columns List<Column>
no setter
createQuery String
no setter
database ↔ Database
getter/setter pair
entity Entity
no setter
hashCode int
The hash code for this object.
no setterinherited
oneToManyColumns List<Column>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

count({Database database}) Future<int>
create({Database database}) Future
deleteAll({Database database}) Future<int>
deleteById({required String id, Database database}) Future<int>
deleteByIds({required List<String> ids, Database database}) Future<int>
find({String? id, List<QueryFilter>? filters, List<String>? fields, Map<String, SortOrder>? sortOrder, Database? database}) Future<List<T>>
findAll({List<QueryFilter> filters, List<String> fields, Map<String, SortOrder> sortOrder}) Future<List<T>>
findById({required String id, List<String>? fields, Database? database}) Future<T?>
insertMany({required List<T> entities, Database? database}) Future<int>
insertOne({required T entity, Database? database}) Future<int>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sanitizeIncomingData({required Map<String, dynamic> entity, required List<Column> columns}) Map<String, dynamic>
saveMany({required List<T> entities, Database database, required MergeMode mergeMode}) Future<int>
saveOne({required T entity, Database database, required MergeMode mergeMode}) Future<int>
toString() String
A string representation of this object.
inherited
updateMany({required List<T> entities, Database database}) Future<int>
updateOne({required T entity, Database database}) Future<int>

Operators

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