Esempio n. 1
0
 def _cursor(self):
     c = tdb.find_rels(self._kind._type_id,
                       sort = self._sort,
                       limit = self._limit,
                       offset = self._offset,
                       constraints = self._rules)
     return Results(c, self._make_rel, True)
Esempio n. 2
0
 def _cursor(self):
     c = tdb.find_rels(self._kind._type_id,
                       False,
                       sort=self._sort,
                       limit=self._limit,
                       constraints=self._rules)
     return Results(c, self._make_rel, True)
Esempio n. 3
0
 def _cursor(self):
     c = tdb.find_rels(
         ret_props=self.props,
         rel_type_id=self._kind._type_id,
         sort=self._sort,
         limit=self._limit,
         offset=self._offset,
         constraints=self._rules,
     )
     return c
Esempio n. 4
0
 def _cursor(self):
     c = tdb.find_rels(
         ret_props=["_rel_id"],
         rel_type_id=self._kind._type_id,
         sort=self._sort,
         limit=self._limit,
         offset=self._offset,
         constraints=self._rules,
     )
     return Results(c, self._make_rel, do_batch=True)
Esempio n. 5
0
 def _cursor(self):
     c = tdb.find_rels(
         ret_props=self.props,
         rel_type_id=self._kind._type_id,
         sort=self._sort,
         limit=self._limit,
         offset=self._offset,
         constraints=self._rules,
     )
     return c
Esempio n. 6
0
 def _cursor(self):
     c = tdb.find_rels(
         ret_props=["_rel_id"],
         rel_type_id=self._kind._type_id,
         sort=self._sort,
         limit=self._limit,
         offset=self._offset,
         constraints=self._rules,
     )
     return Results(c, self._make_rel, do_batch=True)