generators/utils.js
function getDBTypeFromDBValue(db) {
    if (constants.SQL_DB_OPTIONS.map(db => db.value).includes(db)) {
        return 'sql';
    }
    return db;
}
function getDBTypeFromDBValue(db) {
    if (constants.SQL_DB_OPTIONS.map(db => db.value).includes(db)) {
        return 'sql';
    }
    return db;
}
function getDBTypeFromDBValue ( db ) { if ( constants . SQL_DB_OPTIONS . map ( db => db . value ) . includes ( db ) ) { return 'sql' ; } return db ; }
Get DB type from DB value
@param {string} db - db
Get DB type from DB value