ISqlHelper.py 546 B

12345678910111213141516171819202122
  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