UNPKG

@varasto/query

Version:

Query and bulk operation utilities for Varasto storage

9 lines (8 loc) 403 B
import { Storage } from '@varasto/storage'; import { Schema } from 'simple-json-match'; /** * Performs an bulk deletion where all entries from the given namespace that * match the given schema are deleted. Returns total number of deleted entries * or 0 if no entry matched the given schema. */ export declare function deleteAll(storage: Storage, namespace: string, schema: Schema): Promise<number>;