PouchDB + Capella => Can you sync / replicate from custom scope?

未关闭
#9,102 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
javascript
领域
database

调研方向

首先检查 issue 中描述的 PouchDB replication 配置和 Capella Sync Gateway endpoint 格式,包括 custom-scope 的 _changes URL。确定 PouchDB 是否支持该 scope 配置;完成的标准是提供已确认的配置,或清楚地记录该限制和可用的替代方案。

由索引模型根据 Issue 内容生成。

描述

We are trying to connect PouchDB to Capella through Capella Sync Gateway.

We managed to sync / replicate data from the default scope (_default_scope), by setting up the connectoin string as /endpoint.

Since we have multiple collections, we would want to achieve something like this:
https://url.com:4984/test._default.test_sync/_changes?feed=continuous&include_docs=true&timeout=0

Is it possible that each pouch db would sync/repliacate from other scope than the default one? We can set up multiple endpoints in Capella, but we would need each one to be linked to a custom scope.

Above URL, does return correct data when used outside of PouchDB, but we have not succeeded to configure PouchDB to get same data.

If using https://url.com:4984/test._default_scope.test_sync this returns 404.

Are there any other alternatives on achieving this?

主要语言
JavaScript
星标
17.6k
派生
1.5k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/pouchdb 的其他 Issue

查看 apache/pouchdb 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。