Skip to main content

Interface: DatasetRepo

Defined in: contract.ts:87

@rasd/storage — the public entry point.

This package owns three things and nothing else: the frozen StorageAdapter contract, a reference implementation of it, and the suite that proves any other implementation matches. It deliberately has no dependency on @rasd/license — that is what makes export() available in every licence state a property of the module graph rather than a promise (docs/09 §10).

Methods​

delete()​

delete(name): Promise<void>;

Defined in: contract.ts:91

Parameters​

ParameterType
namestring

Returns​

Promise<void>


meta()​

meta(name): Promise<
| {
rows: number;
updatedAt?: string;
version?: string;
}
| undefined>;

Defined in: contract.ts:90

Parameters​

ParameterType
namestring

Returns​

Promise< | { rows: number; updatedAt?: string; version?: string; } | undefined>


putRows()​

putRows(
name,
rows,
opts?
): Promise<void>;

Defined in: contract.ts:88

Parameters​

ParameterType
namestring
rowsRecord<string, unknown>[]
opts?{ replace?: boolean; since?: string; }
opts.replace?boolean
opts.since?string

Returns​

Promise<void>


query()​

query(name, query?): Promise<Record<string, unknown>[]>;

Defined in: contract.ts:89

Parameters​

ParameterType
namestring
query?DatasetRowQuery

Returns​

Promise<Record<string, unknown>[]>