Skip to content

DataStoreOperation

A version-one journal operation. These fields form a published wire format.

Import:

import type { DataStoreOperation } from '@mnaoumov/obsidian-lib/data-stores/data-store-replica';

Signature:

export interface DataStoreOperation

Properties

PropertyTypeDescription
counternumberLogical counter within the wall-clock millisecond.
deletedbooleanWhether this is a removal.
devicestringUnique writer incarnation, stored locally rather than in plugin settings.
keystringRecord key, or set member.
sequencenumberStrictly increasing writer sequence, starting at one.
tags?readonly string[]Observed addition tags removed by a set operation.
timenumberHybrid logical clock wall time.
valueunknownJSON-compatible value; set members use true.

Links to this page: