MCPcopy Index your code
hub / github.com/piccolo-orm/piccolo / get

Method get

piccolo/query/methods/objects.py:420–423  ·  view source on GitHub ↗
(self, where: Combinable)

Source from the content-addressed store, hash-verified

418 return self
419
420 def get(self, where: Combinable) -> Get[TableInstance]:
421 self.where_delegate.where(where)
422 self.limit_delegate.limit(1)
423 return Get[TableInstance](query=First[TableInstance](query=self))
424
425 def get_or_create(
426 self,

Callers 15

__init__Method · 0.80
to_dictMethod · 0.80
_table_strMethod · 0.80
sort_table_classesFunction · 0.80
reflectMethod · 0.80
get_tableMethod · 0.80
_add_to_schema_tablesMethod · 0.80
make_nestedFunction · 0.80
repr_class_instanceFunction · 0.80
get_app_configMethod · 0.80
__init__Method · 0.80

Calls 2

whereMethod · 0.45
limitMethod · 0.45

Tested by 15

test_excludeMethod · 0.64
test_includeMethod · 0.64
test_existing_valueMethod · 0.64
test_raise_exceptionMethod · 0.64
test_getMethod · 0.64
test_get_prefetchMethod · 0.64
test_multiple_matchesMethod · 0.64
test_andMethod · 0.64