MCPcopy
hub / github.com/piccolo-orm/piccolo / first

Method first

piccolo/query/methods/select.py:227–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

225 return self
226
227 def first(self) -> First:
228 self.limit_delegate.limit(1)
229 return First(query=self)
230
231 def offset(self: Self, number: int) -> Self:
232 self.offset_delegate.offset(number)

Callers 15

loginMethod · 0.45
runMethod · 0.45
objects_firstFunction · 0.45
select_firstFunction · 0.45
test_uuid_formatMethod · 0.45
test_hash_updateMethod · 0.45
run_nestedMethod · 0.45
test_inheritanceMethod · 0.45
test_inheritanceMethod · 0.45

Calls 2

FirstClass · 0.70
limitMethod · 0.45

Tested by 15

test_uuid_formatMethod · 0.36
test_hash_updateMethod · 0.36
run_nestedMethod · 0.36
test_inheritanceMethod · 0.36
test_inheritanceMethod · 0.36
test_operatorsMethod · 0.36
test_updateMethod · 0.36
test_transformMethod · 0.36
test_transform_chainMethod · 0.36
test_transform_mixedMethod · 0.36