#include <cSQLCmd.h>
|
| cSQLCmdWhere () |
|
void | SetWhereParenthesis () |
|
void | AddWhereCmd (const char *pszWhereCmd, bool bUseOr=false) |
|
void | AddWhereV (const char *pszColumnName, const char *pszValue=nullptr, SQL_COMPARE_TYPE eCmp=SQL_COMPARE_IS_NULL, bool bUseOr=false) |
|
void | AddWhereInt (const char *pszColumnName, int value, SQL_COMPARE_TYPE eCmp=SQL_COMPARE_Equals, bool bUseOr=false) |
|
void | AddWhereUInt (const char *pszColumnName, UINT value, SQL_COMPARE_TYPE eCmp=SQL_COMPARE_Equals, bool bUseOr=false) |
|
void | AddWhereDouble (const char *pszColumnName, double value, SQL_COMPARE_TYPE eCmp=SQL_COMPARE_Equals, bool bUseOr=false) |
|
void | AddWhereTime (const char *pszColumnName, const cTimeDouble &date, SQL_COMPARE_TYPE eCmp=SQL_COMPARE_Equals, bool bUseOr=false) |
|
void | AddWhereStr (const char *pszColumnName, const char *pszValue, SQL_COMPARE_TYPE eCmp=SQL_COMPARE_Equals, bool bUseOr=false) |
|
cStringA | MakeCommandWhere (const cSQLConfigCmd &cmd, bool bIncludeWhereLiteral=true) |
|
void | ResetCommandWhere () |
|
Any cSQLCmd that needs a "where" criteria/search/filter operation. Use for class cSQLCmdSelect, cSQLCmdDelete, cSQLCmdUpdate
◆ cSQLCmdWhere()
GrayLib::cSQLCmdWhere::cSQLCmdWhere |
( |
| ) |
|
◆ AddWhereCmd()
void GrayLib::cSQLCmdWhere::AddWhereCmd |
( |
const char * |
pszWhereCmd, |
|
|
bool |
bUseOr = false |
|
) |
| |
◆ AddWhereDouble()
◆ AddWhereInt()
◆ AddWhereStr()
Test for 'NULL' immediately because it has a different syntax.
◆ AddWhereTime()
◆ AddWhereUInt()
- Note
- SQL doesn't do native UINT! convert to Int. ASSUME it will fit.
◆ AddWhereV()
Add where (col=val) conditional value to the query.
◆ MakeCommandWhere()
cStringA GrayLib::cSQLCmdWhere::MakeCommandWhere |
( |
const cSQLConfigCmd & |
cmd, |
|
|
bool |
bIncludeWhereLiteral = true |
|
) |
| |
Resolve the m_sWhere + m_aParams to a true command string once we know cSQLConfigCmd.
- Note
- Use cSQLConfigCmd to determine how a specific Db driver wants its arguments. e.g. MSSQL, MySQL or SQLite, etc.
◆ ResetCommandWhere()
void GrayLib::cSQLCmdWhere::ResetCommandWhere |
( |
| ) |
|
◆ SetWhereParenthesis()
void GrayLib::cSQLCmdWhere::SetWhereParenthesis |
( |
| ) |
|
Parenthesis on everything added so far. Must be called after calls to AddWhereCmd() obviously.
◆ k_Param
const char *const GrayLib::cSQLCmdWhere::k_Param = "?" |
|
static |
◆ k_SQLCompares
const char *const GrayLib::cSQLCmdWhere::k_SQLCompares |
|
static |
Initial value:=
{
"=",
">",
"<",
"<=",
">=",
"<>",
" like ",
" IS NULL",
" IS NOT NULL",
}
The documentation for this class was generated from the following files: