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

#include <cSQLStatement.h>

Inheritance diagram for GrayLib::cScriptSourceSQLStatement:
GrayLib::cScriptSourceCurrent GrayLib::cSQLStatementQ GrayLib::cSQLStatement IScriptableGetter GrayLib::cSQLBase IScriptableEnumerator Gray::CObject Gray::cNonCopyable

Public Member Functions

 cScriptSourceSQLStatement ()
 
 ~cScriptSourceSQLStatement ()
 
virtual cStringA get_SourceDesc () const
 
- Public Member Functions inherited from GrayLib::cScriptSourceCurrent
 cScriptSourceCurrent (cStringA sScriptSourceKey)
 
virtual ~cScriptSourceCurrent ()
 
void put_ScriptSourceKey (cStringA sScriptSourceKey)
 
- Public Member Functions inherited from GrayLib::cSQLStatementQ
 cSQLStatementQ ()
 
virtual ~cSQLStatementQ ()
 
SQL_TYPE_t SetColumnType (SQL_COLUMN_t iColumn, SQL_TYPE_t eType)
 
SQL_TYPE_t RemoveColumn (SQL_COLUMN_t iColumn)
 
virtual HRESULT ExecuteAndFetch (cSQLDatabase *pDatabase, cSQLCmd &oCmd, cExceptionHolder *pExceptionRet=nullptr) override
 
virtual HRESULT FetchNext (bool bWaitIfBusy=false) override
 
virtual bool GetColumnVar (SQL_COLUMN_t iColumn, OUT cVariant &vVal) override
 
bool GetColumnVar (const char *pszFieldName, OUT cVariant &vVal)
 
STDMETHOD() s_GetEnum (ITERATE_t i, OUT cStringA &rsPropName, OUT cVariant &rvValRet) override
 
STDMETHOD() s_GetByName (const ATOMCHAR_t *pszPropName, OUT cVariant &vValRet) override
 
- Public Member Functions inherited from GrayLib::cSQLStatement
 cSQLStatement ()
 
virtual ~cSQLStatement ()
 
bool isConnected () const
 
virtual cSQLDriverget_SQLDriver () const
 What driver ultimately owns this? More...
 
virtual cSQLBaseget_SQLParent () const
 
void ExecCancel ()
 
bool CloseStatement (bool bDrop=true, bool bThrowOnError=false)
 
bool Close ()
 
SQL_COLUMN_t GetColumnCount ()
 
cSQLColumnInfoGetColumnInfo (SQL_COLUMN_t iColumn=k_SQL_COL_FIRST)
 
SQL_COLUMN_t FindColumn (const char *pszFieldName)
 
SQL_COLUMN_t VerifyColumn (SQL_COLUMN_t iColumn, const char *pszFieldName)
 
bool GetColumnString (SQL_COLUMN_t iColumn, OUT cStringA &sResult)
 Get the data. string/chars is sometimes a special case here. More...
 
cStringA GetColumnStr (SQL_COLUMN_t iColumn=k_SQL_COL_FIRST)
 
int GetColumnInt (SQL_COLUMN_t iColumn=k_SQL_COL_FIRST)
 
STDMETHOD() s_GetEnum (ITERATE_t i, OUT cStringA &rsPropName, OUT cVariant &vValRet) override
 
cStringA GetColumnStr (const char *pszFieldName)
 These are slightly dangerous to use. you MUST know the order of the select in advance! (or use cSQLStatementQ) More...
 
int GetColumnInt (const char *pszFieldName)
 
bool GetColumnVar (const char *pszFieldName, OUT cVariant &vVal)
 
- Public Member Functions inherited from GrayLib::cSQLBase
virtual ~cSQLBase ()
 
HRESULT FillException (cExceptionHolder &exh, cStringA sCommand, const cDebugSourceLine &src) const
 
HRESULT ReturnError1 (cExceptionHolder &exh) const
 
HRESULT ReturnError2 (cStringA sCommand, const cDebugSourceLine &src) const
 
bool isISQLValid () const
 The SQL handle. More...
 
ITERATE_t get_ChildHandleCount () const noexcept
 
- Public Member Functions inherited from Gray::CObject
virtual ~CObject ()
 
virtual bool isValidCheck () const noexcept
 < memory allocation and structure definitions are valid. More...
 
virtual void AssertValid () const
 < memory allocation and structure definitions are valid. More...
 
virtual void Serialize (cArchive &a)
 

Additional Inherited Members

- Static Public Member Functions inherited from GrayLib::cScriptSourceCurrent
static const cScriptSourceCurrent *GRAYCALL get_ScriptSourceCurrent ()
 
- Static Public Member Functions inherited from GrayLib::cSQLBase
static const FILECHAR_t *GRAYCALL RemoveDriverIdentification (const FILECHAR_t *pszError)
 
- Public Attributes inherited from GrayLib::cSQLStatementQ
cArrayStruct< cVariantm_aColumnData
 store data values for fields/columns. SQL_COLUMN_t = 1 based array More...
 
- Public Attributes inherited from GrayLib::cSQLStatement
cStringA m_sFromTable
 usually the table name. used for error text. More...
 
- Public Attributes inherited from GrayLib::cSQLBase
bool m_bLogOnError
 I want to log message if error. More...
 
- Protected Member Functions inherited from GrayLib::cSQLStatementQ
int ReadRecordset ()
 
- Protected Member Functions inherited from GrayLib::cSQLStatement
ISQLStatementget_ISQLStatement () const
 
ITERATE_t ReadColumnCount ()
 
bool ReadColumnInfo (SQL_COLUMN_t iColumn, OUT cSQLColumnInfo &info)
 ODBC data type (SQL_C_BINARY) More...
 
bool AllocISQLStatement (const cSQLCmd &oCmd)
 
- Protected Member Functions inherited from GrayLib::cSQLBase
bool AttachISQL (ISQLBase *pSQL)
 
void FreeISQL ()
 
bool FreeISQLTested ()
 
 cSQLBase ()
 
- Protected Member Functions inherited from Gray::cNonCopyable
 cNonCopyable () noexcept
 Force the use of Factory creation via protected constructor. More...
 
 ~cNonCopyable () noexcept
 
- Protected Attributes inherited from GrayLib::cScriptSourceCurrent
cStringA m_sScriptSourceKey
 arbitrary link to the source. (for debugging purposes) More...
 
- Protected Attributes inherited from GrayLib::cSQLStatement
cSQLDatabasePtr m_pDatabase
 parent/source Database. More...
 
cArrayStruct< cSQLColumnInfom_aColumnInfo
 store metadata/description of the fields selected. 1 based. More...
 
- Protected Attributes inherited from GrayLib::cSQLBase
cIUnkPtr< ISQLBasem_pISQL
 ISQLBase to some SQL implementation object -> a Driver/environment, connection or recordset/statement. More...
 

Detailed Description

Track a Script Source in a cSQLStatementQ for this Thread.

Note
This should ONLY be stack based !

Constructor & Destructor Documentation

◆ cScriptSourceSQLStatement()

GrayLib::cScriptSourceSQLStatement::cScriptSourceSQLStatement ( )

◆ ~cScriptSourceSQLStatement()

GrayLib::cScriptSourceSQLStatement::~cScriptSourceSQLStatement ( )

Member Function Documentation

◆ get_SourceDesc()

virtual cStringA GrayLib::cScriptSourceSQLStatement::get_SourceDesc ( ) const
virtual

Reimplemented from GrayLib::cScriptSourceCurrent.


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