(self, schema=None)
Return a list of tables in database

        Parameters
        ----------
        schema : Optional[str]
            If set, only tables from given schema will be listed

        Returns
        -------
        A list of TableDesc objects, describing the tables in the database
Return a list of tables in database
Return a list of tables in database
def list_tables(self, schema=None):
        """Return a list of tables in database

        Parameters
        ----------
        schema : Optional[str]
            If set, only tables from given schema will be listed

        Returns
        -------
        A list of TableDesc objects, describing the tables in the database
        """
        query = self.list_tables_query(schema)
        with self.execute_sql_query(query) as cur:
            tables = []
            for schema, name in cur.fetchall():
                sql = "{}.{}".format(
                    self.quote_identifier(schema),
                    self.quote_identifier(name)) if schema else self.quote_identifier(name)
                tables.append(TableDesc(name, schema, sql))
            return tables
def list_tables ( self , schema = None ) : query = self . list_tables_query ( schema ) with self . execute_sql_query ( query ) as cur : tables = [ ] for schema , name in cur . fetchall ( ) : sql = "{}.{}" . format ( self . quote_identifier ( schema ) , self . quote_identifier ( name ) ) if schema else self . quote_identifier ( name ) tables . append ( TableDesc ( name , schema , sql ) ) return tables