ISqlHelper.py 527 B

123456789101112131415161718
  1. #coding:utf-8
  2. class ISqlHelper(object):
  3. params = {'ip':None,'port':None,'types':None,'protocol':None,'country':None,'area':None}
  4. def init_db(self):
  5. raise NotImplemented
  6. def drop_db(self):
  7. raise NotImplemented
  8. def insert(self,value=None):
  9. raise NotImplemented
  10. def delete(self, conditions=None):
  11. raise NotImplemented
  12. def update(self, conditions=None,value=None):
  13. raise NotImplemented
  14. def select(self, count=None,conditions=None):
  15. raise NotImplemented