[]
Defines the interface for a milestone database adapter.
Name |
---|
S |
• interval: number
The interval for saving milestone snapshots.
default
1000
▸ getMilestoneSnapshot(id
, version
): Promise
<undefined
| ISnapshot
<S
>>
Retrieves a milestone snapshot by document ID and version.
Name | Type |
---|---|
id |
string |
version |
number |
Promise
<undefined
| ISnapshot
<S
>>
▸ saveMilestoneSnapshot(snapshot
): Promise
<boolean
>
Saves a milestone snapshot.
Name | Type |
---|---|
snapshot |
ISnapshot <S > |
Promise
<boolean
>