Repository<T extends BaseEntity> class
Constructors
-
Repository({required Database database})
-
Methods
-
count({Database? database})
→ Future<int>
-
override
-
create({Database? database})
→ Future
-
override
-
deleteAll({Database? database})
→ Future<int>
-
override
-
deleteById({required String id, Database? database})
→ Future<int>
-
override
-
deleteByIds({required List<String> ids, Database? database})
→ Future<int>
-
override
-
find({String? id, List<QueryFilter>? filters, List<String>? fields, Map<String, SortOrder>? sortOrder, Database? database, List<ColumnRelation>? relations})
→ Future<List<T>>
-
override
-
findAll({List<QueryFilter>? filters, List<String>? fields, Map<String, SortOrder>? sortOrder, Database? database, List<ColumnRelation>? relations})
→ Future<List<T>>
-
override
-
findById({required String id, List<String>? fields, Database? database, List<ColumnRelation>? relations})
→ Future<T?>
-
override
-
findRelationByParent({required List<ColumnRelation> relations, required List<String> dataIds, Database? database, String? orderParameters})
→ Future<List?>
-
-
findRelations({Database? database, List<ColumnRelation>? relations, dynamic data})
→ Future<List?>
-
-
findWhere({Database? database, String? whereParameters, String? orderParameters, List<String>? fields, List<ColumnRelation>? relations})
→ Future<List<T>>
-
-
findWhereInRelation({Database? database, required Entity entity, required List<Column> columns, String? whereParameters, String? orderParameters, List<String>? fields})
→ Future<List>
-
-
getObject<T>(Map<String, dynamic> objectMap)
→ T
-
-
insertMany({required List<T> entities, Database? database})
→ Future<int>
-
override
-
insertOne({required T entity, Database? database})
→ Future<int>
-
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
rawQuery({required String query})
→ Future<List<Map>>
-
-
sanitizeIncomingData({required Map<String, dynamic> entity, required List<Column> columns})
→ Map<String, dynamic>
-
override
-
saveMany({required List<T> entities, Database? database, int? chunk, required MergeMode mergeMode, SaveOptions? saveOptions})
→ Future<int>
-
override
-
saveOne({required T entity, Database? database, required MergeMode mergeMode, SaveOptions? saveOptions})
→ Future<int>
-
override
-
saveRelationData({required ColumnRelation columnRelation, required BaseEntity entity, Database? database})
→ Future
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateMany({required List<T> entities, Database? database, int? chunk})
→ Future<int>
-
override
-
updateOne({required T entity, Database? database})
→ Future<int>
-
override