MigrationStatusClient
@appfire/fuse-datastore • Docs
@appfire/fuse-datastore / MigrationStatusClient
Class: MigrationStatusClient
Constructors
new MigrationStatusClient()
new MigrationStatusClient(
statusFactory
):MigrationStatusClient
Parameters
• statusFactory: FuseDynamoDBClientFactory
\<DynamoDB
>
Returns
Defined in
migration/status.migration.ts:10
Properties
statusFactory
statusFactory:
FuseDynamoDBClientFactory
\<DynamoDB
>
Defined in
migration/status.migration.ts:8
Methods
createOrUpdateStatus()
createOrUpdateStatus(
partitionKey
,eventName
,status
,body
):Promise
\<void
>
Parameters
• partitionKey: string
• eventName: string
• status: string
• body: DareEvent
Returns
Promise
\<void
>
Defined in
migration/status.migration.ts:22
getMigrationData()
getMigrationData(
partitionKey
):Promise
\<undefined
|Record
\<string
,AttributeValue
>>
Parameters
• partitionKey: string
Returns
Promise
\<undefined
| Record
\<string
, AttributeValue
>>
Defined in
migration/status.migration.ts:92
getMigrationStatus()
getMigrationStatus(
partitionKey
):Promise
\<MigrationStatus
>
Get Migration Status
Parameters
• partitionKey: string
Returns
Promise
\<MigrationStatus
>
status: represents the common migration status, appstatus: represents the app specific status
Defined in
migration/status.migration.ts:111
updateAppStatus()
updateAppStatus(
partitionKey
,eventName
,status
):Promise
\<void
>
Parameters
• partitionKey: string
• eventName: string
• status: string
Returns
Promise
\<void
>
Defined in
migration/status.migration.ts:69
updateStatus()
updateStatus(
partitionKey
,eventName
,status
):Promise
\<void
>
Parameters
• partitionKey: string
• eventName: string
• status: string
Returns
Promise
\<void
>
Defined in
migration/status.migration.ts:50
getInstance()
static
getInstance():Promise
\<MigrationStatusClient
>
Returns
Promise
\<MigrationStatusClient
>