Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

MySql.h 552B

123456789101112131415161718192021222324252627282930313233
  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. private:
  16. const std::string getTempFile();
  17. BResult insertSlave(const std::string& file);
  18. std::string _dumpFilePath;
  19. std::string _overrideFilePath;
  20. };
  21. #endif //PDNS_SLAVE_MYSQL_H