IndexedDb

Is there a more complete IndexdDb proxy object API document available?
How can I check if a database already exists before creating it?
Thank you.

Hello,

Here’s a most complete guide on Webix-IndexDB integration: https://docs.webix.com/desktop__server_indexdb.html

How can I check if a database already exists before creating it?

Normally, indexDB.open() method either opens an existing database, or creates it. This method is called by Webix “indexdb” proxy at runtime during the initial data loading:

view:"datatable",
url:"indexdb->mydb/mycollection",

Or you can explicitly call it as:

webix.proxy.indexdb.create(dbname, collection_data, dbversion, callback);

Hi,

Thanks for your message. By the way, the indexedb.open() method is not mentionned in the guide that I already consulted and I get an error message if I try the direct call that says that the method doesn’t exist

Anyway, I couldn’t get it to work with any of the two methods. the “url” method gives me the following message

NotFoundError: Failed to execute ‘transaction’ on ‘IDBDatabase’: One of the specified object stores was not found.

Would you have any working code snippet?
Thanks again