Example #1
0
 async def retrieve_query(self, pk):
     yield self.select()
     yield self.from_()
     yield self.join()
     yield self.where_pk(pk)
     yield Limit(Var('1'))
Example #2
0
 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'))
Example #3
0
 def browse_limit(self) -> Optional[Limit]:
     if self.browse_limit_value:
         return Limit(Var(str(self.browse_limit_value)))