async def retrieve_query(self, pk): yield self.select() yield self.from_() yield self.join() yield self.where_pk(pk) yield Limit(Var('1'))
async def check_item_permissions_query(self, pk): yield Select([self.pk_ref()]) yield self.from_() yield self.join() yield self.where_pk(pk) yield Limit(Var('1'))
def browse_limit(self) -> Optional[Limit]: if self.browse_limit_value: return Limit(Var(str(self.browse_limit_value)))