Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDynaMoco

Hierarchy

  • IDynaMoco

Index

Properties

_db

_db: DynamoDB

deleteBatch

deleteBatch: (batchReq: {}, opts?: WriteBatchOpts) => Promise<BatchWriteItemOutput>

Type declaration

describeTable

describeTable: (TableName: string) => Promise<DescribeTableOutput & { DBML: string }>

Type declaration

    • (TableName: string): Promise<DescribeTableOutput & { DBML: string }>
    • Parameters

      • TableName: string

      Returns Promise<DescribeTableOutput & { DBML: string }>

getBatch

getBatch: (batchReq: {}) => Promise<BatchGetItemOutput & { _Responses: Dict<Dict<jsTypesFromDynamo>[]> }>

Type declaration

getItem

getItem: (TableName: string, input: validJs2DynamoDict, opts?: GetItemOpts) => Promise<GetItemOutput & { _Item: Dict<jsTypesFromDynamo> }>

Type declaration

paginate

paginate: (req: (ScanReqState & { TableName: string }) | QueryReqState) => AsyncGenerator<ScanOutput | QueryOutput & { _Items?: jsTypesFromDynamo[] }>

Type declaration

putBatch

putBatch: (batchReq: {}, opts?: WriteBatchOpts) => Promise<BatchWriteItemOutput>

Type declaration

putItem

putItem: (TableName: string, item: validJs2DynamoDict, opts?: PutItemOpts) => Promise<PutItemOutput & { _Attributes: Dict<jsTypesFromDynamo> }>

Type declaration

query

query: (input: string | QueryInput, mocoWhereClauses?: PredicateClauses, mocoFilterClauses?: PredicateClauses, opts?: ExtraQueryOptions) => Promise<ScanOutput & { _Items: Dict<jsTypesFromDynamo>[] }>

Type declaration

scan

scan: (input: string | ScanInput, mocoScanState: Partial<ScanReqState>, ...mocoFilterClauses: PredicateClauses) => Promise<ScanOutput & { _Items: Dict<jsTypesFromDynamo>[] }>

Type declaration

updateTable

updateTable: (table: string, onDemandMode: boolean, opts?: UpdateTable) => Promise<UpdateTableOutput>

Type declaration

    • (table: string, onDemandMode: boolean, opts?: UpdateTable): Promise<UpdateTableOutput>
    • Parameters

      • table: string
      • onDemandMode: boolean
      • Optional opts: UpdateTable

      Returns Promise<UpdateTableOutput>

Generated using TypeDoc