⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 expr.cpp

📁 LiteSQL is a C++ library that integrates C++ objects tightly to relational database and thus provide
💻 CPP
字号:
/* LiteSQL - Expr-API implementation *  * By Tero Laitinen  *  * See LICENSE for copyright information. */#include "litesql/expr.hpp"#include "litesql/selectquery.hpp"namespace litesql {In::In(const FieldType & fld, const SelectQuery& s)    : Oper(fld, "in", "(" + s.asString() + ")") {}And operator&&(const Expr &o1, const Expr &o2) {    return And(o1,o2);}Or operator||(const Expr &o1, const Expr &o2) {    return Or(o1,o2);}Not operator!(const Expr & exp) {    return Not(exp);}Eq operator==(const FieldType& fld, const FieldType& f2) {    return Eq(fld, f2);}Gt operator>(const FieldType& fld, const FieldType& o2) {    return Gt(fld, o2);}GtEq operator>=(const FieldType& fld, const FieldType& o2) {    return GtEq(fld, o2);}Lt operator<(const FieldType& fld, const FieldType& o2) {    return Lt(fld, o2);}LtEq operator<=(const FieldType& fld, const FieldType& o2) {    return LtEq(fld, o2);}NotEq operator!=(const FieldType& fld, const FieldType& f2) {    return NotEq(fld, f2);}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -