async init() {
    await this.upgradeIfNeeded();

    const tablesKeys = Object.keys(Tables);
    this.tables = [];
    const initResults = [];
    for (const key of tablesKeys) {
      this[key] = new Tables[key](this);
      this.tables.push(this[key]);
      initResults.push(this[key].init());
    }

    await Promise.all(initResults);
  }
/**
   * Inits the DB manager. Creates all necessary tables, and inits each of them.
   * @return {Promise} nothing
   */
Inits the DB manager. Creates all necessary tables, and inits each of them.
@return {Promise} nothing
Inits the DB manager . Creates all necessary tables and inits each of them . @return { Promise } nothing
async init() {
    await this.upgradeIfNeeded();
    const tablesKeys = Object.keys(Tables);
    this.tables = [];
    const initResults = [];
    for (const key of tablesKeys) {
      this[key] = new Tables[key](this);
      this.tables.push(this[key]);
      initResults.push(this[key].init());
    }
    await Promise.all(initResults);
  }
async init ( ) { await this . upgradeIfNeeded ( ) ; const tablesKeys = Object . keys ( Tables ) ; this . tables = [ ] ; const initResults = [ ] ; for ( const key of tablesKeys ) { this [ key ] = new Tables [ key ] ( this ) ; this . tables . push ( this [ key ] ) ; initResults . push ( this [ key ] . init ( ) ) ; } await Promise . all ( initResults ) ; }
Inits the DB manager.
Inits the DB manager .