dynatron
Version:
The most advanced ORM for AWS DynamoDB
29 lines (28 loc) • 1.32 kB
TypeScript
import { QueryOutput } from "@aws-sdk/client-dynamodb";
import { ListFetch } from "../_core/items-list-fetch";
import { EqualsCondition, KeyCondition } from "../..";
import { DynatronClient, NativeValue } from "../../dynatron";
import { BUILD } from "../../utils/misc-utils";
export declare class Query extends ListFetch {
#private;
private partitionKeyCondition;
private sortKeyCondition?;
constructor(databaseClient: DynatronClient, tableName: string, partitionKeyCondition: EqualsCondition);
having: (keyCondition: KeyCondition | undefined) => this;
sort: (sort: "ASC" | "DSC") => this;
[BUILD](): {
ScanIndexForward?: boolean | undefined;
_KeyConditionExpression: import("../..").AndCondition;
_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;
};
$: <T = NativeValue[] | undefined>(disableRecursion?: boolean) => Promise<{
data: T | undefined;
} & Omit<QueryOutput, "Items">>;
}