Exemplo n.º 1
0
 def distinct(self, key, callback, query=None):
     client = Client(Database(), self.collection.__collection__)
     client.find(query).distinct(key, callback=callback)
Exemplo n.º 2
0
 def distinct(self, key, callback, query=None):
     client = Client(Database(), self.collection.__collection__)
     client.find(query).distinct(key, callback=callback)
Exemplo n.º 3
0
 def count(self, query=None, callback=None):
     client = Client(Database(), self.collection.__collection__)
     client.find(query).count(callback=callback)
Exemplo n.º 4
0
 def count(self, query=None, callback=None):
     client = Client(Database(), self.collection.__collection__)
     client.find(query).count(callback=callback)