24 #ifndef Safir_Databases_Environment_h
25 #define Safir_Databases_Environment_h
28 #include "Safir/Databases/Odbc/Internal/InternalDefs.h"
30 #include <boost/noncopyable.hpp>
41 #pragma warning(disable: 4275)
83 void SetEnvAttr(
long lAttribute,
long lValue);
95 void SetEnvAttr(
long lAttribute,
const std::wstring & wszValue,
unsigned long ulLength);
106 void GetEnvAttr(
long lAttribute,
long & lValue)
const;
118 void GetEnvAttr(
long lAttribute,
wchar_t * wszValue,
unsigned long ulLength)
const;
130 bool GetDiagRec(
short sRecNumber,
131 std::wstring & SqlState,
132 boost::int32_t & NativeError,
133 std::wstring & MessageText,
134 bool & bDataRead)
const;
140 bool IsValid()
const;
146 SQLHENV Handle()
const;
149 bool bSetOdbcVersion;
151 void ThrowReconnectException(
const std::wstring & fileName,
153 void ThrowReconnectException( SQLHENV hEnv,
154 const std::wstring & fileName,
165 return m_hEnv != SQL_NULL_HENV;
180 #endif // Safir_Databases_Environment_h
bool IsValid() const
Checks if this environment is a valid allocated environment.
Definition: Environment.h:163
DotsC_Int64 Int64
64 bit integer type.
Definition: Defs.h:70
SQLHENV Handle() const
Returns the ODBC Handle of the environment.
Definition: Environment.h:169
The Environment class models the necessary setup each application neeeds in order to access the datab...
Definition: Environment.h:49