@classmethod
def fast_update(cls, trial_id, finish, docstring, session=None):
    'Update finish time of trial\n\n        Use core sqlalchemy\n\n        Arguments:\n        trial_id -- trial id\n        finish -- finish time as a datetime object\n\n\n        Keyword arguments:\n        session -- specify session for loading (default=relational.session)\n        '
    session = (session or relational.session)
    ttrial = cls.t
    session.execute(ttrial.update().values(finish=finish, docstring=docstring).where((ttrial.c.id == trial_id)))
    session.commit()
Update finish time of trial

Use core sqlalchemy

Arguments:
trial_id -- trial id
finish -- finish time as a datetime object


Keyword arguments:
session -- specify session for loading (default=relational.session)
@classmethod
def fast_update(cls, trial_id, finish, docstring, session=None):
    'Update finish time of trial\n\n        Use core sqlalchemy\n\n        Arguments:\n        trial_id -- trial id\n        finish -- finish time as a datetime object\n\n\n        Keyword arguments:\n        session -- specify session for loading (default=relational.session)\n        '
    session = (session or relational.session)
    ttrial = cls.t
    session.execute(ttrial.update().values(finish=finish, docstring=docstring).where((ttrial.c.id == trial_id)))
    session.commit()