Complete redo of content indexing and querying (#517)
Complete redo of data store Introduces live queries and live templates
This commit is contained in:
@@ -1,17 +1,11 @@
|
||||
export type KvKey = string[];
|
||||
export type KvValue = any;
|
||||
|
||||
export type KV = {
|
||||
key: KvKey;
|
||||
value: KvValue;
|
||||
};
|
||||
import { KV, KvKey } from "$sb/types.ts";
|
||||
|
||||
export type KvQueryOptions = {
|
||||
prefix?: KvKey;
|
||||
};
|
||||
|
||||
export interface KvPrimitives {
|
||||
batchGet(keys: KvKey[]): Promise<(KvValue | undefined)[]>;
|
||||
batchGet(keys: KvKey[]): Promise<(any | undefined)[]>;
|
||||
batchSet(entries: KV[]): Promise<void>;
|
||||
batchDelete(keys: KvKey[]): Promise<void>;
|
||||
query(options: KvQueryOptions): AsyncIterableIterator<KV>;
|
||||
|
||||
Reference in New Issue
Block a user