跳到主要内容

RepositorySyncType

type RepositorySyncType = "full" | "filter" | "querycache" | "remote" | "local" | "none";

Defined in: packages/rxdb/src/version/sync-type-utils.ts:20

Repository 同步类型

  • full: 双向同步,本地和远程数据完全同步
  • filter: 条件同步,根据过滤条件同步部分数据
  • querycache: 查询缓存同步,按需拉取并缓存远程数据
  • remote: 只读远程,数据仅存在于远程
  • local: 只本地,数据仅存在于本地
  • none: 不同步