找到你要的答案

Q:pouchdb error “no database open” while starting replication

Q:pouchdb错误”没有打开数据库”同时开始复制

i had created application using ionic and pouchdb.

i am using couchdb on my local server.

My sample application is working fine in ios and android. But same application in blackberry10 giving error while start replication

error as following

{
  "status": 500,
  "name": "Error",
  "message": "unknown",
  "error": "true",
  "reason": "database not open"
}

I had also created app to test pouchdb working in blackberry10 or not? But it working.

so i am getting error while replication in blackberry10 application.

and i am unable to figure out why it is only giving error in blackberry10 and what is exact problem.

我创造了使用离子和pouchdb应用。

我在我的本地服务器使用CouchDB。

我的示例应用程序是在iOS和Android的好工作。但同样应用在BlackBerry10给错误而开始复制

错误如下

{
  "status": 500,
  "name": "Error",
  "message": "unknown",
  "error": "true",
  "reason": "database not open"
}

我还创建了应用程序的测试工作中pouchdb BlackBerry10不?但它工作。

所以我在BlackBerry10应用复制得到的误差。

我无法理解为什么它是只给错误BlackBerry10和精确的问题是什么。

answer1: 回答1:

Thanks for response nlawson

I solved it.

I was using sqlite plugin to use websql adapter and provide size to database.

var localDB = new PouchDB(databaseName, {adapter: 'websql',size:10});

so sqlite plugin is working properly with ios and android.

i just remove sqlite plugin and make

var localDB = new PouchDB(databaseName);

and it start working on blackberry10 device.

为响应nlawson谢谢

我解决了。

我是用SQLite插件使用WebSQL适配器和数据库提供的尺寸。

var localDB = new PouchDB(databaseName, {adapter: 'websql',size:10});

所以SQLite插件与iOS和安卓系统正常工作。

我只是删除插件使SQLite

var localDB = new PouchDB(databaseName);

它开始BlackBerry10装置。

answer2: 回答2:

We're working on BlackBerry support, but it seems like their implementation of WebSQL is not correct: https://github.com/pouchdb/pouchdb/pull/3737

我们正在对黑莓的支持,但似乎他们执行查询是不正确的:https://github.com/pouchdb/pouchdb/pull/3737

ionic-framework  pouchdb