lemon-core
Version:
Lemon Serverless Micro-Service Platform
44 lines (43 loc) • 1.28 kB
TypeScript
/**
* `query.ts`
* - query
*
*
* @author Steve Jung <steve@lemoncloud.io>
* @date 2019-11-20 refactoring to ts via origin
*
* @copyright (C) lemoncloud.io 2019 - All Rights Reserved.
*/
/**
* class: `Query`
*/
declare class Query {
protected hashKey: any;
protected table: any;
protected serializer: any;
protected options: any;
protected request: any;
constructor(hashKey: any, table: any, serializer: any);
limit: (num: any) => any;
filterExpression: (expression: any) => any;
expressionAttributeValues: (data: any) => any;
expressionAttributeNames: (data: any) => any;
projectionExpression: (data: any) => any;
usingIndex: (name: any) => any;
consistentRead: (read: any) => any;
addKeyCondition: (condition: any) => any;
addFilterCondition: (condition: any) => any;
startKey: (hashKey: any, rangeKey: any) => any;
attributes: (attrs: any) => any;
ascending: () => any;
descending: () => any;
select: (value: any) => any;
returnConsumedCapacity: (value: any) => any;
loadAll: () => any;
where: (keyName: any) => any;
filter: (keyName: any) => any;
exec: (callback: any) => void;
buildKey: () => any;
buildRequest: () => any;
}
export default Query;