Qx v0.7
Qt Extensions Library
Loading...
Searching...
No Matches
QxSql::Inline Class Reference

The Inline class is the base class from which all SQL inline keywords derive from. More...

Inheritance diagram for QxSql::Inline:
[legend]

Public Types

enum  Constructor {
  None = 0x00 ,
  Default = 0x01 ,
  SingleString = 0x02 ,
  SingleStringable = 0x04 ,
  MultiStringable = 0x08 ,
  MultiStringableParen = 0x10 ,
  StringableRangeParen = 0x20 ,
  Query = 0x40
}
 

Public Member Functions

 operator Qx::SqlString () const noexcept
 

Friends

Qx::SqlString operator! (const Inline &i)
 
Qx::SqlString operator&= (const Inline &a, const Inline &b)
 
Qx::SqlString operator|= (const Inline &a, const Inline &b)
 

Detailed Description

Each inline keyword is implemented as a specialization of ConcreteInline, each having different constructors available as indicated by their use of the Constructor enum.

Member Enumeration Documentation

◆ Constructor

This enum specifies what constructors are available for an inline keyword.

Enumerator
None 

None (never used).

Default 

A default constructor. This results in just the word itself being inserted into the statement.

SingleString 

A constructor that results in the keyword along with a single string as an operand being inserted into the statement.

SingleStringable 

A constructor that results in the keyword along with a single string (formed from any compatible type) as an operand being inserted into the statement.

MultiStringable 

A constructor that results in the keyword along with one or more strings (formed from any compatible types) as an operand being inserted into the statement.

MultiStringableParen 

A constructor that results in the keyword along with one or more strings (formed from any compatible types) surrounded by parentheses as an operand being inserted into the statement.

StringableRangeParen 

A constructor that results in the keyword along with all values in the provided ranged (of compatible types) surrounded by parentheses as an operand being inserted into the statement.

Query 

A constructor that results in the keyword along with an entire sub-query being inserted into the statement.

Member Function Documentation

◆ operator Qx::SqlString()

QxSql::Inline::operator Qx::SqlString ( ) const
inlinenoexcept

Converts the inline word to an SQL string.


The documentation for this class was generated from the following files: