def get_all_tables(self, filter, as_sql=False):
    'Get all tables / views'
    sql_tmpl = self._template('metadata.all_tables')
    if (not sql_tmpl):
        raise Exception('get_all_tables not implemented for {}'.format(self.type))
    sql = sql_tmpl.format(filter=filter)
    return (sql if as_sql else self.query(sql, echo=False))
Get all tables / views
def get_all_tables(self, filter, as_sql=False):
    
    sql_tmpl = self._template('metadata.all_tables')
    if (not sql_tmpl):
        raise Exception('get_all_tables not implemented for {}'.format(self.type))
    sql = sql_tmpl.format(filter=filter)
    return (sql if as_sql else self.query(sql, echo=False))