Public Types | Public Member Functions | Public Attributes | List of all members
soci::odbc_session_backend Struct Reference

#include <soci-odbc.h>

Inheritance diagram for soci::odbc_session_backend:
Inheritance graph
[legend]

Public Types

enum  database_product {
  prod_uninitialized, prod_firebird, prod_mssql, prod_mysql,
  prod_oracle, prod_postgresql, prod_sqlite, prod_unknown = -1
}
 

Public Member Functions

virtual void begin ()
 
void clean_up ()
 
virtual void commit ()
 
virtual std::string get_backend_name () const
 
std::string get_connection_string () const
 
database_product get_database_product ()
 
virtual bool get_last_insert_id (session &s, std::string const &table, long &value)
 
virtual bool get_next_sequence_value (session &s, std::string const &sequence, long &value)
 
virtual odbc_blob_backendmake_blob_backend ()
 
virtual odbc_rowid_backendmake_rowid_backend ()
 
virtual odbc_statement_backendmake_statement_backend ()
 
 odbc_session_backend (connection_parameters const &parameters)
 
void reset_transaction ()
 
virtual void rollback ()
 
 ~odbc_session_backend ()
 
- Public Member Functions inherited from soci::details::session_backend
 session_backend ()
 
virtual ~session_backend ()
 

Public Attributes

std::string connection_string_
 
SQLHDBC hdbc_
 
SQLHENV henv_
 
database_product product_
 

Detailed Description

Definition at line 269 of file soci-odbc.h.

Member Enumeration Documentation

Enumerator
prod_uninitialized 
prod_firebird 
prod_mssql 
prod_mysql 
prod_oracle 
prod_postgresql 
prod_sqlite 
prod_unknown 

Definition at line 294 of file soci-odbc.h.

Constructor & Destructor Documentation

odbc_session_backend::odbc_session_backend ( connection_parameters const &  parameters)

Definition at line 19 of file backends/odbc/session.cpp.

odbc_session_backend::~odbc_session_backend ( )

Definition at line 93 of file backends/odbc/session.cpp.

Member Function Documentation

void odbc_session_backend::begin ( )
virtual

Implements soci::details::session_backend.

Definition at line 98 of file backends/odbc/session.cpp.

void odbc_session_backend::clean_up ( )

Definition at line 225 of file backends/odbc/session.cpp.

void odbc_session_backend::commit ( )
virtual

Implements soci::details::session_backend.

Definition at line 109 of file backends/odbc/session.cpp.

virtual std::string soci::odbc_session_backend::get_backend_name ( ) const
inlinevirtual

Implements soci::details::session_backend.

Definition at line 284 of file soci-odbc.h.

std::string soci::odbc_session_backend::get_connection_string ( ) const
inline

Definition at line 310 of file soci-odbc.h.

odbc_session_backend::database_product odbc_session_backend::get_database_product ( )

Definition at line 265 of file backends/odbc/session.cpp.

bool odbc_session_backend::get_last_insert_id ( session s,
std::string const &  table,
long &  value 
)
virtual

Reimplemented from soci::details::session_backend.

Definition at line 172 of file backends/odbc/session.cpp.

bool odbc_session_backend::get_next_sequence_value ( session s,
std::string const &  sequence,
long &  value 
)
virtual

Reimplemented from soci::details::session_backend.

Definition at line 131 of file backends/odbc/session.cpp.

odbc_blob_backend * odbc_session_backend::make_blob_backend ( )
virtual

Implements soci::details::session_backend.

Definition at line 259 of file backends/odbc/session.cpp.

odbc_rowid_backend * odbc_session_backend::make_rowid_backend ( )
virtual

Implements soci::details::session_backend.

Definition at line 254 of file backends/odbc/session.cpp.

odbc_statement_backend * odbc_session_backend::make_statement_backend ( )
virtual

Implements soci::details::session_backend.

Definition at line 249 of file backends/odbc/session.cpp.

void odbc_session_backend::reset_transaction ( )

Definition at line 213 of file backends/odbc/session.cpp.

void odbc_session_backend::rollback ( )
virtual

Implements soci::details::session_backend.

Definition at line 120 of file backends/odbc/session.cpp.

Member Data Documentation

std::string soci::odbc_session_backend::connection_string_

Definition at line 315 of file soci-odbc.h.

SQLHDBC soci::odbc_session_backend::hdbc_

Definition at line 313 of file soci-odbc.h.

SQLHENV soci::odbc_session_backend::henv_

Definition at line 312 of file soci-odbc.h.

database_product soci::odbc_session_backend::product_

Definition at line 316 of file soci-odbc.h.


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


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:41