class_docstr: A :class:`Reporter` subclass to print and store a formatted table of
  the results.
docstr: Load history from a database supplied as a path to a file or a
  :obj:`tinydb.TinyDB` object.
  
  Args:
      database: :obj:`str` or :obj:`tinydb.TinyDB`. The database to load.
      table: (optional) :obj:`str`. The table to load from the database.
          This argument is not required if the database has only one table.
  
  Raises:
      :class:`ValueError`: if the database contains more than one table
      and `table` is not given.
docstr_tok: ["Load","history","from","a","database","supplied","as","a","path","to","a","file","or","a",":","obj",":","`","tinydb.TinyDB","`","object",".","Args",":","database",":",":","obj",":","`","str","`","or",":","obj",":","`","tinydb.TinyDB","`",".","The","database","to","load",".","table",":","(","optional",")",":","obj",":","`","str","`",".","The","table","to","load","from","the","database",".","This","argument","is","not","required","if","the","database","has","only","one","table",".","Raises",":",":","class",":","`","ValueError","`",":","if","the","database","contains","more","than","one","table","and","`","table","`","is","not","given","."]
code: def from_database(
      self, database: Union[str, tinydb.TinyDB], table: str = None
  ):
      """Load history from a database supplied as a path to a file or a
      :obj:`tinydb.TinyDB` object.
  
      Args:
          database: :obj:`str` or :obj:`tinydb.TinyDB`. The database to load.
          table: (optional) :obj:`str`. The table to load from the database.
              This argument is not required if the database has only one table.
  
      Raises:
          :class:`ValueError`: if the database contains more than one table
          and `table` is not given.
      """
      super(Table, self).from_database(database, table)
      for doc in self._db_default_table:
          history_point = self._convert_doc_to_history(doc)
          self._log_history_point(history_point)
  
file_path: hypertunity/hypertunity/reports/table.py
imports: from typing import Any, List, Union
  import beautifultable
  import numpy
  import tinydb
  from hypertunity import utils
  from hypertunity.domain import Domain
  from hypertunity.optimisation.base import HistoryPoint
  from .base import Reporter
label_desc: Use image node_id 6 for calling the Table obj's underlying member method code with example usage: obj.from_database(database, table) without return types