function logDatabaseData(database) {
    if (database && database instanceof Database) {
        if (nonEmptyObject(database.models)) {
            Object.values(database.tables).forEach( t => {
                t.model.findAll().then((row) => {
                    console.log("Table:",t.name)
                    console.log(row.map(r => r.dataValues))
            })})
        } else {
            console.error("No models generated")
        }
    } else {
        console.error("Bad database parameter passed")
    }
}
/**
 * Prints all database values in console
 * @param {Database} database 
 */
Prints all database values in console
@param {Database} database
Prints all database values in console @param { Database } database
function logDatabaseData(database) {
    if (database && database instanceof Database) {
        if (nonEmptyObject(database.models)) {
            Object.values(database.tables).forEach( t => {
                t.model.findAll().then((row) => {
                    console.log("Table:",t.name)
                    console.log(row.map(r => r.dataValues))
            })})
        } else {
            console.error("No models generated")
        }
    } else {
        console.error("Bad database parameter passed")
    }
}
function logDatabaseData ( database ) { if ( database && database instanceof Database ) { if ( nonEmptyObject ( database . models ) ) { Object . values ( database . tables ) . forEach ( t => { t . model . findAll ( ) . then ( ( row ) => { console . log ( "Table:" , t . name ) console . log ( row . map ( r => r . dataValues ) ) } ) } ) } else { console . error ( "No models generated" ) } } else { console . error ( "Bad database parameter passed" ) } }
Prints all database values in console
 @param {Database} database
Prints all database values in console @param { Database } database