lemon-engine
Version:
Lemon Engine Module to Synchronize Node over DynamoDB + ElastiCache + Elasticsearch by [lemoncloud](https://lemoncloud.io)
36 lines (35 loc) • 1.2 kB
TypeScript
/**
* DynamoDB Proxy Service Exports
* - proxy call to dynamo service.
*
*
*
* @author steve@lemoncloud.io
* @date 2019-05-23
* @copyright (C) lemoncloud.io 2019 - All Rights Reserved.
*/
import { EnginePluggable, EnginePluginBuilder } from '../common/types';
export interface DynamoProxy extends EnginePluggable {
/**
* get the current endpoint address.
*/
endpoint: () => string;
/**
* should be `async do_list_tables()`.
*/
do_list_tables: (table?: string, limit?: number) => Promise<{
TableNames: string[];
LastEvaluatedTableName: string;
}>;
do_create_table: (table: any, id_name: any, id_type: any) => any;
do_delete_table: (table: any) => any;
do_read_stream: (param: any) => any;
do_create_item: (table: any, id: any, data: any) => any;
do_get_item: (table: any, id: any) => any;
do_delete_item: (table: any, id: any) => any;
do_update_item: (table: any, id: any, data: any, incset: any) => any;
do_increment_item: (table: any, id: any, data: any, incset: any) => any;
do_test_self: (param?: any) => any;
}
declare const maker: EnginePluginBuilder<DynamoProxy>;
export default maker;