在jaydata / jaydata buck中找不到websqlprovider.js?

时间:2021-09-25 19:57:59

i am using jaydata in a iOS uiwebview. I try to generate a websql databse because indexddb is not supported in uiwebview. The script crashes with:

我在iOS uiwebview中使用jaydata。我尝试生成一个websql数据库,因为uiwebview不支持indexddb。脚本崩溃:

Failed to load resource: The requested URL was not found on this server. url: jaydataproviders/websqlprovider.js

无法加载资源:在此服务器上找不到请求的URL。 url:jaydataproviders / websqlprovider.js

There is no websqlprovider.js file in the jaydata installation. Can anybody help please?

jaydata安装中没有websqlprovider.js文件。有人可以帮忙吗?

2 个解决方案

#1


0  

you should load the jaydataproviders/SqLiteProvider.js manually, then jaydata won't try to load it automatically. This should resolve the issue

你应该手动加载jaydataproviders / SqLiteProvider.js,然后jaydata不会尝试自动加载它。这应该可以解决问题

#2


0  

Sorry my own mistake. When i want to start a indexeddb database, then:

对不起我自己的错误。当我想启动一个indexeddb数据库,然后:

Providername 'indexedDb' will load the [indexDb]Provider.js file automatically from dir jaydataproviders.

Providername'indexedDb'将自动从dir jaydataproviders加载[indexDb] Provider.js文件。

When i start database with:

当我启动数据库时:

         mydatabase = new MyDB_Context({provider: Providername, databaseName : "anyname", dbCreation: MyDB.storageProviders.DbCreationType.DropTableIfChanged, version: 1});

Sorry for this.

非常遗憾。

#1


0  

you should load the jaydataproviders/SqLiteProvider.js manually, then jaydata won't try to load it automatically. This should resolve the issue

你应该手动加载jaydataproviders / SqLiteProvider.js,然后jaydata不会尝试自动加载它。这应该可以解决问题

#2


0  

Sorry my own mistake. When i want to start a indexeddb database, then:

对不起我自己的错误。当我想启动一个indexeddb数据库,然后:

Providername 'indexedDb' will load the [indexDb]Provider.js file automatically from dir jaydataproviders.

Providername'indexedDb'将自动从dir jaydataproviders加载[indexDb] Provider.js文件。

When i start database with:

当我启动数据库时:

         mydatabase = new MyDB_Context({provider: Providername, databaseName : "anyname", dbCreation: MyDB.storageProviders.DbCreationType.DropTableIfChanged, version: 1});

Sorry for this.

非常遗憾。