📄 updatequery.hpp
字号:
/* LiteSQL * * By Tero Laitinen * * See LICENSE for copyright information. */#ifndef _litesql_updatequery_hpp#define _litesql_updatequery_hpp#include "litesql/utils.hpp"#include "litesql/expr.hpp"/** \file updatequery.hpp contains UpdateQuery-class. */namespace litesql {/** a class that helps creating UPDATE-SQL statements. methods are self-explanatory. */using namespace std; class UpdateQuery { string table; string _where; Split fields; Split values;public: UpdateQuery(string t) : table(t), _where("True") {} UpdateQuery& where(const Expr& e); UpdateQuery& set(FieldType f, string value); operator std::string() const; std::string asString() const { return this->operator std::string(); }};}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -