updatequery.hpp

来自「LiteSQL is a C++ library that integrates」· HPP 代码 · 共 33 行

HPP
33
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?