lib/index.js
function shouldSkip(table, detail) {
    var skipTable = getConfig('generate.skipTable');            // Do not auto generate files for those tables.
    if (skipTable.indexOf(table.name()) !== -1 || skipTable.indexOf(table.schema().name() + '.' + table.name()) !== -1) {
        if (getConfig('output.log')) {
            if (detail === 'table') {
                logger.info('(Skipped ' + detail + ') File \'' + getFileName(table) + '\' is skipped for model \'' + getModelNameFor(table) + '\'');
            } else if (detail === 'relation') {
                logger.info('(Skipped ' + detail + ') Relation is skipped for model \'' + getModelNameFor(table) + '\'');
            }

        }
        return true;
    }
    return false;
}
function shouldSkip(table, detail) {
    var skipTable = getConfig('generate.skipTable');            // Do not auto generate files for those tables.
    if (skipTable.indexOf(table.name()) !== -1 || skipTable.indexOf(table.schema().name() + '.' + table.name()) !== -1) {
        if (getConfig('output.log')) {
            if (detail === 'table') {
                logger.info('(Skipped ' + detail + ') File \'' + getFileName(table) + '\' is skipped for model \'' + getModelNameFor(table) + '\'');
            } else if (detail === 'relation') {
                logger.info('(Skipped ' + detail + ') Relation is skipped for model \'' + getModelNameFor(table) + '\'');
            }

        }
        return true;
    }
    return false;
}
function shouldSkip ( table , detail ) { var skipTable = getConfig ( 'generate.skipTable' ) ; // Do not auto generate files for those tables. if ( skipTable . indexOf ( table . name ( ) ) !== - 1 || skipTable . indexOf ( table . schema ( ) . name ( ) + '.' + table . name ( ) ) !== - 1 ) { if ( getConfig ( 'output.log' ) ) { if ( detail === 'table' ) { logger . info ( '(Skipped ' + detail + ') File \'' + getFileName ( table ) + '\' is skipped for model \'' + getModelNameFor ( table ) + '\'' ) ; } else if ( detail === 'relation' ) { logger . info ( '(Skipped ' + detail + ') Relation is skipped for model \'' + getModelNameFor ( table ) + '\'' ) ; } } return true ; } return false ; }
Returns if table is in the list of tables to be skipped. Looks for schema.table and table name.
@private
@param {object} table - pg-structure object
@param {string} detail - Type of object to include it in explanation
@returns {boolean}
Returns if table is in the list of tables to be skipped . Looks for schema . table and table name .