MCPcopy
hub / github.com/msiemens/tinydb / __repr__

Method __repr__

tinydb/database.py:99–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

97 self._tables: Dict[str, Table] = {}
98
99 def __repr__(self):
100 args = [
101 'tables={}'.format(list(self.tables())),
102 'tables_count={}'.format(len(self.tables())),
103 'default_table_documents_count={}'.format(self.__len__()),
104 'all_tables_documents_count={}'.format(
105 ['{}={}'.format(table, len(self.table(table)))
106 for table in self.tables()]),
107 ]
108
109 return '<{} {}>'.format(type(self).__name__, ', '.join(args))
110
111 def table(self, name: str, **kwargs) -> Table:
112 """

Callers

nothing calls this directly

Calls 3

tablesMethod · 0.95
__len__Method · 0.95
tableMethod · 0.95

Tested by

no test coverage detected