Exemplo n.º 1
0
 def find_all(self, props):
     # Returns list of all items in result set
     query = self.create_query(props)
     cursor = db.find(self._table, query)
     results = []
     for item in cursor:
         results.append(item)
     return results
Exemplo n.º 2
0
 def find_all(self, props):
     # Returns list of all items in result set
     query = self.create_query(props)
     cursor = db.find(self._table, query)
     results = []
     for item in cursor:
         results.append(item)
     return results
Exemplo n.º 3
0
 def find_one(self, props):
     # Returns the first item in result iterator
     query = self.create_query(props)
     cursor = db.find(self._table, query)
     return next(cursor)
Exemplo n.º 4
0
 def find_one(self, props):
     # Returns the first item in result iterator
     query = self.create_query(props)
     cursor = db.find(self._table, query)
     return next(cursor)