Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // Created by robin on 8/9/15.
  3. //
  4. #ifndef PDNS_SLAVE_MYSQL_H
  5. #define PDNS_SLAVE_MYSQL_H
  6. #include "AbstractSql.h"
  7. class MySql : public AbstractSql
  8. {
  9. public:
  10. MySql(const SqlConfiguration& masterConfig, const SqlConfiguration& slaveConfig);
  11. ~MySql();
  12. BResult dump();
  13. BResult insert();
  14. BResult override(const std::string& sql);
  15. virtual std::string getAddDomainQuery(const ActionAddDomain &action) override;
  16. virtual std::string getAddHostQuery(const ActionAddHost &action) override;
  17. virtual std::string getDelDomainQuery(const ActionDelDomain &action) override;
  18. virtual std::string getDelHostQuery(const ActionDelHost &action) override;
  19. private:
  20. const std::string getTempFile();
  21. BResult insertSlave(const std::string& file);
  22. std::string _dumpFilePath;
  23. std::string _overrideFilePath;
  24. };
  25. #endif //PDNS_SLAVE_MYSQL_H