IDataStorageAdapter class abstract interface

Адаптер хранилища, который можно реализовать поверх любого backend-а (in-memory, SQLite, Postgres и т.д.).

Implementers

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

deleteCollection(String collection) Future<bool>
deleteRecord(String collection, String id, {int? expectedVersion}) Future<bool>
deleteRecords(String collection, Iterable<String> ids) Future<int>
dispose() Future<void>
ensureReady({bool validateIntegrity = true}) Future<void>
Ensure the underlying storage is initialised and ready to serve traffic.
listCollections() Future<List<String>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryCollection(ListRecordsRequest request) Future<ListRecordsResponse>
Execute a filtered query over a collection, applying sort and pagination directly in the storage backend. Implementations should throw an RpcDataError when the requested filter or sort is not supported.
readCollection(String collection) Future<List<DataRecord>>
readCollectionChunks(String collection, {int chunkSize = defaultStorageChunkSize}) Stream<List<DataRecord>>
readRecord(String collection, String id) Future<DataRecord?>
readRecords(String collection, Iterable<String> ids) Future<Map<String, DataRecord>>
searchCollection(SearchRecordsRequest request) Future<SearchRecordsResponse>
Execute a search query against the backend, applying the provided filter and pagination options at the storage layer. Implementations should throw an RpcDataError when the request cannot be executed.
toString() String
A string representation of this object.
inherited
writeRecord(DataRecord record) Future<void>
writeRecords(Iterable<DataRecord> records) Future<void>

Operators

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