dynatron
Version:
The most advanced ORM for AWS DynamoDB
27 lines (26 loc) • 1.1 kB
TypeScript
import { ScanOutput } from "@aws-sdk/client-dynamodb";
import { ListFetch } from "../_core/items-list-fetch";
import { NativeValue } from "../../dynatron";
import { BUILD } from "../../utils/misc-utils";
export declare class Scan extends ListFetch {
#private;
totalSegments: (totalSegments?: number) => this;
segment: (segment: number) => this;
disableSegments: () => this;
[BUILD](): {
Segment?: number | undefined;
TotalSegments?: number | undefined;
_ExclusiveStartKey?: NativeValue | undefined;
Limit?: number | undefined;
IndexName?: string | undefined;
_FilterExpressions?: import("../..").Condition[] | undefined;
_ProjectionExpressions?: string[] | undefined;
ConsistentRead?: true | undefined;
ReturnConsumedCapacity: import("@aws-sdk/client-dynamodb").ReturnConsumedCapacity;
TableName: string | undefined;
};
private scanSegment;
$: <T = NativeValue[] | undefined>(disableRecursion?: boolean) => Promise<{
data: T | undefined;
} & Omit<ScanOutput, "Items">>;
}