UNPKG

@setho/dynamodb-repository

Version:

DynamoDB repository for hash-key and hash-key/range indexed tables. Designed for Lambda use. Handles nice-to-haves like created and updated timestamps and default id creation.

12 lines (11 loc) 380 B
export declare const createCursor: (lastEvaluatedKey: Record<string, any> | string) => string; export declare const parseCursor: (cursor: string) => any; export declare const createId: ({ prefix }?: { prefix?: string | undefined; }) => Promise<string>; export declare const createDynamoDbKey: (input: { keyName: string; keyValue: any; }) => { [x: string]: any; };