X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fstorage%2Falchemy.py;h=84879a6f34a057515a2295304c10df1dd071d98c;hb=2d94bbfb87d2458bba9da28a7c7a237cc1537004;hp=ead5219df37c47330869bc3296c4c28f5693994d;hpb=f5b8415e55c7d889dda5663a5742a2ccd684e047;p=sfa.git diff --git a/sfa/storage/alchemy.py b/sfa/storage/alchemy.py index ead5219d..84879a6f 100644 --- a/sfa/storage/alchemy.py +++ b/sfa/storage/alchemy.py @@ -59,23 +59,6 @@ class Alchemy: self._session.close() self._session=None - def commit (self): - self.session().commit() - - def insert (self, stuff, commit=False): - if isinstance (stuff,list): - self.session().add_all(stuff) - else: - self.session().add(obj) - - # for compat with the previous PostgreSQL stuff - def update (self, record): - self.commit() - - def remove (self, record): - self.delete(record) - self.commit() - #################### from sfa.util.config import Config