Update.h 451 B

123456789101112131415161718192021222324252627
  1. // Copyright: All Rights Reserved
  2. // Author: egametang@gmail.com (tanghai)
  3. #ifndef ORM_UPDATE_H
  4. #define ORM_UPDATE_H
  5. #include <google/protobuf/message.h>
  6. #include "Orm/Expr.h"
  7. namespace Egametang {
  8. class Update
  9. {
  10. private:
  11. google::protobuf::Message& message;
  12. Expr where;
  13. public:
  14. explicit Update(google::protobuf::Message& message);
  15. Update& Where(Expr expr);
  16. std::string ToString() const;
  17. };
  18. } // namespace Egametang
  19. #endif // ORM_UPDATE_H