Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cSQLCmdInsertBase Class Reference

#include <cSQLCmd.h>

Inheritance diagram for GrayLib::cSQLCmdInsertBase:
GrayLib::cSQLCmd GrayLib::cSQLCmdInsert GrayLib::cSQLCmdUpdate

Public Member Functions

 cSQLCmdInsertBase (cStringA sTableName)
 
virtual void ResetCommand () override
 
void MakeCommandInsert (const cSQLConfigCmd &cfg, bool bFieldNames=true)
 
bool HasColumns () const
 
void AddColumn (const char *pszColumnName, const cVariant &vVal)
 
- Public Member Functions inherited from GrayLib::cSQLCmd
 cSQLCmd (cStringA sTableName="", cStringA sCommand="")
 
virtual ~cSQLCmd ()
 
virtual SQLCMD_TYPE get_CmdType () const =0
 
virtual bool isResultsExpected () const
 
cStringA get_Table () const
 
void put_Table (cStringA sTable)
 
bool isCommandMade () const
 
cStringA get_Command () const
 
void put_Command (cStringA sCommand)
 
void ResetCommand0 ()
 
virtual void MakeCommand (const cSQLConfigCmd &cfg)=0
 build the string from our args. More...
 

Public Attributes

cVarMap m_Values
 Named Fields and Values to set. allow me to poke stuff into this list directly. Similar to m_aParams for Where. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GrayLib::cSQLCmd
static bool GRAYCALL IsValueTime (const char *pszVal)
 
static cStringA GRAYCALL MakeValueTime (const cSQLConfigCmd &cfg, const cTimeDouble &date)
 
static cStringA GRAYCALL MakeValueStr (const cSQLConfigCmd &cfg, const cVariant &vVal)
 
- Static Public Attributes inherited from GrayLib::cSQLCmd
static const char * k_pszNULL = "NULL"
 
- Protected Attributes inherited from GrayLib::cSQLCmd
cStringA m_sTable
 The table ( 'From' if select ), delete, create. More...
 
cStringA m_sCommand
 The resultant full SQL command. use MakeCommand() to build this up. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ cSQLCmdInsertBase()

GrayLib::cSQLCmdInsertBase::cSQLCmdInsertBase ( cStringA  sTableName)

Member Function Documentation

◆ AddColumn()

void GrayLib::cSQLCmdInsertBase::AddColumn ( const char *  pszColumnName,
const cVariant vVal 
)
inline

◆ HasColumns()

bool GrayLib::cSQLCmdInsertBase::HasColumns ( ) const
inline

◆ MakeCommandInsert()

void GrayLib::cSQLCmdInsertBase::MakeCommandInsert ( const cSQLConfigCmd cfg,
bool  bFieldNames = true 
)

Make this into an Insert command.

◆ ResetCommand()

void GrayLib::cSQLCmdInsertBase::ResetCommand ( )
overridevirtual

Reimplemented from GrayLib::cSQLCmd.

Reimplemented in GrayLib::cSQLCmdUpdate.

Member Data Documentation

◆ m_Values

cVarMap GrayLib::cSQLCmdInsertBase::m_Values

Named Fields and Values to set. allow me to poke stuff into this list directly. Similar to m_aParams for Where.


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