Example #1
0
 def find_by_id(self, key):
     return session.query(Student).get(key)
Example #2
0
 def delete(self, key):
     student = session.query(Student).get(key)
     session.delete(student)
Example #3
0
 def find_all(self):
     return session.query(Student).all()
Example #4
0
 def update(self, key, obj):
     student = session.query(Student).get(key)
     student.full_update(obj)
     session.commit()
Example #5
0
 def patch(self, key, field_name, value):
     student = session.query(Student).get(key)
     setattr(student, field_name, value)
     session.commit()
Example #6
0
 def find_all(self):
     return session.query(Group).all()
Example #7
0
 def find_by_id(self, key):
     return session.query(Group).get(key)
Example #8
0
 def patch(self, key, field_name, value):
     group = session.query(Group).get(key)
     setattr(group, field_name, value)
     session.commit()
Example #9
0
 def delete(self, key):
     group = session.query(Group).get(key)
     session.delete(group)
     session.commit()
 def find_all(self):
     return session.query(self._domain_type).all()
Example #11
0
 def update(self, key, obj):
     group = session.query(Group).get(key)
     group.full_update(obj)
     session.commit()
 def delete_all(self):
     session.query(self._domain_type).delete()
     session.commit()
 def delete(self, key):
     domain_obj = session.query(self._domain_type).get(key)
     session.delete(domain_obj)
     session.commit()
 def patch(self, key, field_name, value):
     domain_obj = session.query(self._domain_type).get(key)
     setattr(domain_obj, field_name, value)
     session.commit()
 def update(self, key, obj):
     domain_obj = session.query(self._domain_type).get(key)
     domain_obj.full_update(obj)
     session.commit()
 def find_by_id(self, key):
     return session.query(self._domain_type).get(key)