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

Method all

tinydb/table.py:225–237  ·  view source on GitHub ↗

Get all documents stored in the table. :returns: a list with all documents.

(self)

Source from the content-addressed store, hash-verified

223 return doc_ids
224
225 def all(self) -> List[Document]:
226 """
227 Get all documents stored in the table.
228
229 :returns: a list with all documents.
230 """
231
232 # iter(self) (implemented in Table.__iter__ provides an iterator
233 # that returns all documents in this table. We use it to get a list
234 # of all documents by using the ``list`` constructor to perform the
235 # conversion.
236
237 return list(iter(self))
238
239 def search(self, cond: QueryLike) -> List[Document]:
240 """

Callers 15

test_allFunction · 0.45
test_read_onceFunction · 0.45
test_yamlFunction · 0.45
test_table_is_iterableFunction · 0.45
test_caching_readFunction · 0.45
test_caching_json_writeFunction · 0.45
test_allFunction · 0.45
test_get_idsFunction · 0.45
test_get_multiple_idsFunction · 0.45
test_unique_idsFunction · 0.45
test_doc_ids_jsonFunction · 0.45
test_insert_stringFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_allFunction · 0.36
test_read_onceFunction · 0.36
test_yamlFunction · 0.36
test_table_is_iterableFunction · 0.36
test_caching_readFunction · 0.36
test_caching_json_writeFunction · 0.36
test_allFunction · 0.36
test_get_idsFunction · 0.36
test_get_multiple_idsFunction · 0.36
test_unique_idsFunction · 0.36
test_doc_ids_jsonFunction · 0.36
test_insert_stringFunction · 0.36