dynatron
Version:
The most advanced ORM for AWS DynamoDB
27 lines (26 loc) • 1 kB
TypeScript
import { Condition } from "../";
import { NativeValue } from "../dynatron";
import { UpdateType } from "../requesters/items/items-update";
type NativeExpressionModel = {
expressionString: string;
expressionAttributeNames: Record<string, string>;
expressionAttributeValues?: NativeValue;
};
export declare const parseAttributePath: (attributePath: string) => ({
type: "name";
name: string;
} | {
type: "index";
index: number;
})[];
export declare const marshallProjectionExpression: (projectionExpressions: string[]) => {
expressionString: string;
expressionAttributeNames: Record<string, string>;
};
export declare const marshallUpdateExpression: (updates: UpdateType[], prefix?: string) => {
expressionString: string;
expressionAttributeNames: Record<string, string>;
expressionAttributeValues: NativeValue | undefined;
};
export declare const marshallConditionExpression: (conditions: Condition[], prefix?: string) => NativeExpressionModel;
export {};