class StatelyDB::SyncResult
@attr_reader token [StatelyDB::Token] the token to continue from
@attr_reader is_reset [Boolean] whether the sync operation reset the token
Treat these as deleted in most cases.
items that were updated but Stately cannot tell if they were in the sync window.
@attr_reader updated_outside_list_window_paths [Array<String>] the key paths of
@attr_reader deleted_item_paths [Array<String>] the key paths that were deleted
@attr_reader changed_items [Array<StatelyDB::Item>] the items that were changed
SyncResult represents the results of a sync operation.
def initialize(changed_items:, deleted_item_paths:, updated_outside_list_window_paths:, is_reset:, token:)
-
token(StatelyDB::Token) -- the token to continue from -
is_reset(Boolean) -- whether the sync operation reset the token -
updated_outside_list_window_paths(Array) -- key paths for items that were updated -
deleted_item_paths(Array) -- the key paths that were deleted -
changed_items(Array) -- the items that were changed
def initialize(changed_items:, deleted_item_paths:, updated_outside_list_window_paths:, is_reset:, token:) @changed_items = changed_items @deleted_item_paths = deleted_item_paths @updated_outside_list_window_paths = updated_outside_list_window_paths @is_reset = is_reset @token = token end