PostgresqlDataRepository<TService extends Service, DataType extends DataObject<DataType>> mixin
Methods
-
atomic<R>(Future<R> delegate())
→ Future<R>
-
Runs all calls to this repository from inside
delegate inside an
atomic transaction.
-
count({Filter filter = Filter.empty})
→ Future<int>
-
Returns the count of all elements that match
filter.
-
create(DataType object)
→ Future<DataType>
-
Creates a new element.
-
deleteAll({required Filter filter})
→ Future<int>
-
Deletes all elements matching the
filter.
-
deleteById(dynamic id)
→ Future<bool>
-
Find and delete an element by its
DataBean.idField value.
-
dispose()
→ FutureOr<void>
-
inherited
-
find<T>(Find<T> finder)
→ T
-
inherited
-
first({Filter filter = Filter.empty, Sort sort = Sort.empty, int offset = 0})
→ Future<DataType?>
-
-
initialize()
→ FutureOr<void>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
read<T>(Config<T> config)
→ T
-
inherited
-
readAll({Filter filter = Filter.empty, Sort sort = Sort.empty, int? offset, int? limit})
→ Future<List<DataType>>
-
Read all elements respecting
filter, sort, offset and limit values.
-
readById(dynamic id)
→ Future<DataType?>
-
Find and read an element by its
DataBean.idField value.
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateAll({required Filter filter, required Map<DataField<DataType, dynamic>, dynamic> values})
→ Future<int>
-
Updates the given
values of all elements matching the filter.
-
updateById(DataType element)
→ Future<bool>
-
Find and update an element by its
DataBean.idField value.