async _populateData({ tableName, schema = '' }) {
        let table = this._getTableIfExists(tableName);
        // table not found, need to create it before proceeding
        if (!table || schema) {
            // since we need to create a new table, the schema has to be specified.
            // if not provided, your entry will not be indexed.
            if (!schema) {
                console.warn(
                    `${tableName} table does not exist and appropriate schema was not provided. All entries will not be indexed, until table schema is updated.`
                );
            }
            try {
                table = await this._modifyDB({
                    tableName: tableName,
                    schema: schema ? schema : '_id++',
                });
            } catch (err) {
                err.message = `Unable to create table ${tableName}. ${
                    err.message
                }`;
                throw err;
            }
        }
        return table;
    }
/**
     * **PRIVATE METHOD**
     *
     * **INTERNAL USE ONLY**
     *
     * If tableName is an existant table, data is added/replaced based on the existance of the primary key.
     * If table with a given name does not exist, table is going to be created based on schema.
     * If no schema is provided, all of the subsequent operations on that table will not be indexed.
     *
     * @param {*} param config Object for data inserion/update
     * @returns promise that resolves to id of the newly created/updated entry.
     */
PRIVATE METHOD
INTERNAL USE ONLY

If tableName is an existant table, data is added/replaced based on the existance of the primary key.
If table with a given name does not exist, table is going to be created based on schema.
If no schema is provided, all of the subsequent operations on that table will not be indexed.

@param {*} param config Object for data inserion/update
@returns promise that resolves to id of the newly created/updated entry.
PRIVATE METHOD INTERNAL USE ONLY If tableName is an existant table data is added / replaced based on the existance of the primary key . If table with a given name does not exist table is going to be created based on schema . If no schema is provided all of the subsequent operations on that table will not be indexed . @param { * } param config Object for data inserion / update @returns promise that resolves to id of the newly created / updated entry .
async _populateData({ tableName, schema = '' }) {
        let table = this._getTableIfExists(tableName);
        if (!table || schema) {
            if (!schema) {
                console.warn(
                    `${tableName} table does not exist and appropriate schema was not provided. All entries will not be indexed, until table schema is updated.`
                );
            }
            try {
                table = await this._modifyDB({
                    tableName: tableName,
                    schema: schema ? schema : '_id++',
                });
            } catch (err) {
                err.message = `Unable to create table ${tableName}. ${
                    err.message
                }`;
                throw err;
            }
        }
        return table;
    }
async _populateData ( { tableName , schema = '' } ) { let table = this . _getTableIfExists ( tableName ) ; if ( ! table || schema ) { if ( ! schema ) { console . warn ( ` ${ tableName } ` ) ; } try { table = await this . _modifyDB ( { tableName : tableName , schema : schema ? schema : '_id++' , } ) ; } catch ( err ) { err . message = ` ${ tableName } ${ err . message } ` ; throw err ; } } return table ; }
**PRIVATE METHOD
 **INTERNAL USE ONLY
** PRIVATE METHOD ** INTERNAL USE ONLY
// table not found, need to create it before proceeding // since we need to create a new table, the schema has to be specified. // if not provided, your entry will not be indexed.