DatasetBackend <Data>
Index
Methods
drop
Returns Promise<void>
getData
Fetch a page of items from the dataset.
Parameters
optionaloptions: DatasetBackendListOptions
Returns Promise<PaginatedList<Data>>
getMetadata
Returns metadata about the dataset (id, name, timestamps, item count, etc.).
Implementations should throw if the underlying storage no longer exists (e.g. it was deleted externally). This method should never return stale data for a storage that has been removed.
Returns Promise<DatasetInfo>
purge
Remove all items from the dataset but keep the dataset itself.
Returns Promise<void>
pushData
Add items to the dataset.
Parameters
items: Data[]
Returns Promise<void>
Remove the dataset and all its data.