libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::NTUtils::Database::ODBC::Connection Class Reference

#include <ODBCWrapper.hpp>

Inheritance diagram for jmmcg::NTUtils::Database::ODBC::Connection:
[legend]
Collaboration diagram for jmmcg::NTUtils::Database::ODBC::Connection:
[legend]

Public Member Functions

 Connection (const tstring &cnx, const bool read_only, const SQLUINTEGER timeout=15)
 
 ~Connection (void) noexcept(true)
 
const tstring &__fastcall cnx_string () const noexcept(true)
 
virtual void __fastcall execute (const tstring &sql)
 
virtual void __fastcall execute (const tstringstream &sql)
 

Protected Member Functions

void __fastcall AllocateStmt ()
 
- Protected Member Functions inherited from jmmcg::NTUtils::Database::ODBC::Environment
 Environment (const bool read_only=true, const SQLUINTEGER timeout=15)
 
virtual ~Environment (void) noexcept(true)
 

Protected Attributes

const SQLUINTEGER stmt_timeout
 
SQLHSTMT hstmt
 
- Protected Attributes inherited from jmmcg::NTUtils::Database::ODBC::Environment
SQLHDBC hdbc
 

Detailed Description

Definition at line 351 of file ODBCWrapper.hpp.

Constructor & Destructor Documentation

◆ Connection()

Connection::Connection ( const tstring cnx,
const bool  read_only,
const SQLUINTEGER  timeout = 15 
)
inline

Definition at line 243 of file ODBCWrapper.cpp.

◆ ~Connection()

Connection::~Connection ( void  )
inlinenoexcept

Definition at line 256 of file ODBCWrapper.cpp.

Member Function Documentation

◆ AllocateStmt()

void __fastcall Connection::AllocateStmt ( void  )
inlineprotected

Definition at line 272 of file ODBCWrapper.cpp.

◆ cnx_string()

const tstring& __fastcall jmmcg::NTUtils::Database::ODBC::Connection::cnx_string ( ) const
inlinenoexcept

Definition at line 355 of file ODBCWrapper.hpp.

◆ execute() [1/2]

◆ execute() [2/2]

virtual void __fastcall jmmcg::NTUtils::Database::ODBC::Connection::execute ( const tstringstream sql)
inlinevirtual

Definition at line 357 of file ODBCWrapper.hpp.

Member Data Documentation

◆ hstmt

SQLHSTMT jmmcg::NTUtils::Database::ODBC::Connection::hstmt
protected

Definition at line 361 of file ODBCWrapper.hpp.

◆ stmt_timeout

const SQLUINTEGER jmmcg::NTUtils::Database::ODBC::Connection::stmt_timeout
protected

Definition at line 360 of file ODBCWrapper.hpp.


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