Home - cieszynski/dberta.js GitHub Wiki
dberta.js is a promise-based and transactional wrapper for indexedDB.
To use dberta.js, the source must first be embedded in the document:
<script src="https://cdn.jsdelivr.net/gh/cieszynski/dberta.js@latest/dberta.min.js"></script>
or:
importScript("https://cdn.jsdelivr.net/gh/cieszynski/dberta.js@latest/dberta.min.js")
Then the dberta
object is available globally.
To open/create a database use the following method:
dberta.open(dbName, schema)