This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let { AceBase } = require('acebase'); | |
// Database contains all IndexedDB database logic for our web app. | |
class Database { | |
// The constructor opens/creates the database titled 'my_db_(namespace)' | |
constructor(namespace) { | |
// Use AceBase.WithIndexedDB to create an AceBase instance | |
// that uses IndexedDB to store its data | |
let name = Database.dbName(namespace); |