betterddb
Version:
A definition-based DynamoDB wrapper library that provides a schema-driven and fully typesafe DAL.
18 lines • 743 B
TypeScript
import { type BetterDDB } from "../betterddb.js";
import { type TransactWriteItem } from "@aws-sdk/client-dynamodb";
import { type NativeAttributeValue } from "@aws-sdk/lib-dynamodb";
export declare class DeleteBuilder<T> {
private parent;
private key;
private condition?;
private extraTransactItems;
constructor(parent: BetterDDB<T>, key: Partial<T>);
/**
* Specify a condition expression for the delete operation.
*/
withCondition(expression: string, attributeValues: Record<string, NativeAttributeValue>): this;
execute(): Promise<void>;
transactWrite(ops: TransactWriteItem[] | TransactWriteItem): this;
toTransactDelete(): TransactWriteItem;
}
//# sourceMappingURL=delete-builder.d.ts.map