|
Qx v0.7.0.1
Qt Extensions Library
|
The qx-sqlinlines header file provides several types for conveniently adding SQL keywords that are used in the middle of an SQL clause. More...
#include <QString>#include "qx/sql/qx-sqlquery.h"#include "qx/sql/qx-sqlstring.h"#include "qx/sql/__private/qx-sqlstring_helpers.h"#include "qx/utility/qx-typetraits.h"Go to the source code of this file.
Classes | |
| class | QxSql::ConcreteInline< word, Cs > |
| The ConcreteInline class is used to implement each specific inline keyword. More... | |
| class | QxSql::Inline |
| The Inline class is the base class from which all SQL inline keywords derive from. More... | |
Namespaces | |
| namespace | QxSql |
The QxSql namespace contains several utilities that are specific to the SQL module and grouped together for better organization and encapsulation when making use of using directives. | |
Typedefs | |
| using | QxSql::ALL |
| using | QxSql::ANY |
| using | QxSql::AS |
| using | QxSql::ASC |
| using | QxSql::AVG |
| using | QxSql::COUNT |
| using | QxSql::DEFAULT |
| using | QxSql::DESC |
| using | QxSql::ESCAPE |
| using | QxSql::ILIKE |
| using | QxSql::IN |
| using | QxSql::LIKE |
| using | QxSql::MAX |
| using | QxSql::MIN |
| using | QxSql::NUL |
| using | QxSql::SOME |
| using | QxSql::SUM |
| using | QxSql::UNKNOWN |
Functions | |
| Qx::SqlString | QxSql::operator! (const Inline &i) |
| Qx::SqlString | QxSql::operator&= (const Inline &a, const Inline &b) |
| Qx::SqlString | QxSql::operator|= (const Inline &a, const Inline &b) |
These types allow one to insert mid-clause keywords without having to manually specify them as a string. Such words that can be followed by parentheses containing values have a constructor with arguments for those values.
Some of these keywords overlap with the SqlQuery keyword methods, so you may use whichever is more appropriate in the given context.
Simply using:
allows you to write these inline keywords plainly.