betterddb
Version:
A definition-based DynamoDB wrapper library that provides a schema-driven and fully typesafe DAL.
18 lines • 667 B
TypeScript
import { type BetterDDB } from "../betterddb.js";
import { type TransactGetItem } from "@aws-sdk/client-dynamodb";
export declare class GetBuilder<T> {
private parent;
private key;
private projectionExpression?;
private expressionAttributeNames;
private extraTransactItems;
constructor(parent: BetterDDB<T>, key: Partial<T>);
/**
* Specify a projection by providing an array of attribute names.
*/
withProjection(attributes: (keyof T)[]): this;
execute(): Promise<T | null>;
transactGet(ops: TransactGetItem[] | TransactGetItem): this;
toTransactGet(): TransactGetItem;
}
//# sourceMappingURL=get-builder.d.ts.map