Display info about a table: number of rows
        and columns

        :param name: name of the table
        :type name: str

        :example: ``tables = ds.table("mytable")``

def table(self, name: str):
        """
        Display info about a table: number of rows
        and columns

        :param name: name of the table
        :type name: str

        :example: ``tables = ds.table("mytable")``
        """
        if self._check_db() == False:
            return
        try:
            res = self.getall(name)
        except Exception as e:
            self.err(e, self.table, "Can not get records from database")
            return
        if res is None:
            self.warning("Table", name, "does not contain any record")
            return
        num = len(res)
        self.info(num, "rows")
        self.info("Fields:", ", ".join(list(res)))