buildQueryViews(options) {
    const schema = options.owner || options.schema;

    let whereSchema = '';
    if (schema || !options.all) {
      whereSchema = `table_schem = ${schema || 'USER'} AND`;
    }
    const sql = `SELECT table_type AS "type", table_name AS "name", table_schem AS "owner" FROM sysibm.sqltables WHERE ${whereSchema} table_type = 'VIEW'`;

    return IBMiConnector.paginateSQL(sql, 'table_schem, table_name', options);
  }
// connectors, each connector will have to generate its own query
connectors, each connector will have to generate its own query
connectors each connector will have to generate its own query
buildQueryViews(options) {
    const schema = options.owner || options.schema;
    let whereSchema = '';
    if (schema || !options.all) {
      whereSchema = `table_schem = ${schema || 'USER'} AND`;
    }
    const sql = `SELECT table_type AS "type", table_name AS "name", table_schem AS "owner" FROM sysibm.sqltables WHERE ${whereSchema} table_type = 'VIEW'`;
    return IBMiConnector.paginateSQL(sql, 'table_schem, table_name', options);
  }
buildQueryViews ( options ) { const schema = options . owner || options . schema ; let whereSchema = '' ; if ( schema || ! options . all ) { whereSchema = ` ${ schema || 'USER' } ` ; } const sql = ` ${ whereSchema } ` ; return IBMiConnector . paginateSQL ( sql , 'table_schem, table_name' , options ) ; }
connectors, each connector will have to generate its own query
connectors each connector will have to generate its own query