Beispiel #1
0
 def find_by_id(self, key):
     return session.query(Student).get(key)
Beispiel #2
0
 def delete(self, key):
     student = session.query(Student).get(key)
     session.delete(student)
Beispiel #3
0
 def find_all(self):
     return session.query(Student).all()
Beispiel #4
0
 def update(self, key, obj):
     student = session.query(Student).get(key)
     student.full_update(obj)
     session.commit()
Beispiel #5
0
 def patch(self, key, field_name, value):
     student = session.query(Student).get(key)
     setattr(student, field_name, value)
     session.commit()
Beispiel #6
0
 def find_all(self):
     return session.query(Group).all()
Beispiel #7
0
 def find_by_id(self, key):
     return session.query(Group).get(key)
Beispiel #8
0
 def patch(self, key, field_name, value):
     group = session.query(Group).get(key)
     setattr(group, field_name, value)
     session.commit()
Beispiel #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()
Beispiel #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)