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