betterddb
Version:
A definition-based DynamoDB wrapper library that provides a schema-driven and fully typesafe DAL.
21 lines • 841 B
TypeScript
import { type NativeAttributeValue } from "@aws-sdk/lib-dynamodb";
import { type BetterDDB } from "../betterddb.js";
import { type Operator } from "../operator.js";
import { type PaginatedResult } from "../types/paginated-result.js";
export declare class ScanBuilder<T> {
private parent;
private filters;
private expressionAttributeNames;
private expressionAttributeValues;
private limit?;
private lastKey?;
constructor(parent: BetterDDB<T>);
where(attribute: keyof T, operator: Operator, values: unknown): this;
limitResults(limit: number): this;
startFrom(lastKey: Record<string, NativeAttributeValue>): this;
/**
* Executes the scan and returns a Promise that resolves with an array of items.
*/
execute(): Promise<PaginatedResult<T>>;
}
//# sourceMappingURL=scan-builder.d.ts.map