def count(self, handler, params=None): if params is not None: handler.set_params(params) handler.params.condition = get_filter(handler, self.board) data, error = Controller(handler=handler, table=self.table).count() return data, error
def update(self, handler, params=None, upsert=False): if params is not None: handler.set_params(params) handler.params.condition = get_filter(handler, self.board) data, error = Controller(handler=handler, table=self.table).update(upsert) return data, error
def write_stream_to_grid(handler): return Controller(handler=handler).write_stream_to_grid()
def write_file_to_grid(handler): return Controller(handler=handler).write_file_to_grid()
def read_stream_from_grid(handler): return Controller(handler=handler).read_stream_from_grid()
def read_file_from_grid(handler): return Controller(handler=handler).read_file_from_grid()
def increment(handler): return Controller(handler=handler).increment()
def aggregate(handler): return Controller(handler=handler).aggregate()
def drop(handler): return Controller(handler=handler).drop()
def change_password(handler): return Controller(handler=handler).change_password()
def add_user(handler): return Controller(handler=handler).add_user()
def create_user(handler): return Controller(handler=handler).create_user()
def add(self, handler): data, error = Controller(handler=handler, table=self.table).add() return data, error