24 #ifndef Safir_Databases_Environment_h
25 #define Safir_Databases_Environment_h
27 #ifndef SAFIR_NO_DEPRECATED
30 #include "Safir/Databases/Odbc/Internal/InternalDefs.h"
32 #include <boost/noncopyable.hpp>
43 #pragma warning(disable: 4275)
88 void SetEnvAttr(
long lAttribute,
long lValue);
100 void SetEnvAttr(
long lAttribute,
const std::wstring & wszValue,
unsigned long ulLength);
111 void GetEnvAttr(
long lAttribute,
long & lValue)
const;
123 void GetEnvAttr(
long lAttribute,
wchar_t * wszValue,
unsigned long ulLength)
const;
135 bool GetDiagRec(
short sRecNumber,
136 std::wstring & SqlState,
137 boost::int32_t & NativeError,
138 std::wstring & MessageText,
139 bool & bDataRead)
const;
145 bool IsValid()
const;
151 SQLHENV Handle()
const;
154 bool bSetOdbcVersion;
156 void ThrowReconnectException(
const std::wstring & fileName,
158 void ThrowReconnectException( SQLHENV hEnv,
159 const std::wstring & fileName,
170 return m_hEnv != SQL_NULL_HENV;
186 #endif // Safir_Databases_Environment_h
DotsC_Int64 Int64
64 bit integer type.
Definition: Defs.h:69
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition: Backdoor.h:30
SQLHENV Handle() const
Returns the ODBC Handle of the environment.
Definition: Environment.h:174
bool IsValid() const
Checks if this environment is a valid allocated environment.
Definition: Environment.h:168
The Environment class models the necessary setup each application neeeds in order to access the datab...
Definition: Environment.h:54