|
a/Ming/ming/base.py |
|
b/Ming/ming/base.py |
|
... |
|
... |
119 |
return self.session.find_by(self.cls, **kwargs)
|
119 |
return self.session.find_by(self.cls, **kwargs)
|
120 |
|
120 |
|
121 |
def count(self):
|
121 |
def count(self):
|
122 |
return self.session.count(self.cls)
|
122 |
return self.session.count(self.cls)
|
123 |
|
123 |
|
124 |
def ensure_index(self, fields):
|
124 |
def ensure_index(self, fields, **kwargs):
|
125 |
return self.session.ensure_index(self.cls, fields)
|
125 |
return self.session.ensure_index(self.cls, fields, **kwargs)
|
126 |
|
126 |
|
127 |
def ensure_indexes(self):
|
127 |
def ensure_indexes(self):
|
128 |
return self.session.ensure_indexes(self.cls)
|
128 |
return self.session.ensure_indexes(self.cls)
|
129 |
|
129 |
|
130 |
def group(self, *args, **kwargs):
|
130 |
def group(self, *args, **kwargs):
|