Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
soci::session Class Reference

#include <session.h>

Public Member Functions

void begin ()
 
void close ()
 
void commit ()
 
details::session_backendget_backend ()
 
std::string get_backend_name () const
 
bool get_last_insert_id (std::string const &table, long &value)
 
std::string get_last_query () const
 
std::ostream * get_log_stream () const
 
bool get_next_sequence_value (std::string const &sequence, long &value)
 
std::string get_query () const
 
std::ostringstream & get_query_stream ()
 
bool get_uppercase_column_names () const
 
bool got_data () const
 
void log_query (std::string const &query)
 
details::blob_backendmake_blob_backend ()
 
details::rowid_backendmake_rowid_backend ()
 
details::statement_backendmake_statement_backend ()
 
void open (connection_parameters const &parameters)
 
void open (backend_factory const &factory, std::string const &connectString)
 
void open (std::string const &backendName, std::string const &connectString)
 
void open (std::string const &connectString)
 
template<typename T >
details::once_temp_type operator<< (T const &t)
 
void reconnect ()
 
void rollback ()
 
 session ()
 
 session (connection_parameters const &parameters)
 
 session (backend_factory const &factory, std::string const &connectString)
 
 session (std::string const &backendName, std::string const &connectString)
 
 session (std::string const &connectString)
 
 session (connection_pool &pool)
 
void set_got_data (bool gotData)
 
void set_log_stream (std::ostream *s)
 
template<typename T >
void set_query_transformation (T callback)
 
void uppercase_column_names (bool forceToUpper)
 
 ~session ()
 

Public Attributes

details::once_type once
 
details::prepare_type prepare
 

Private Member Functions

sessionoperator= (session const &)
 
 session (session const &)
 
void set_query_transformation_ (std::auto_ptr< details::query_transformation_function > qtf)
 

Private Attributes

details::session_backendbackEnd_
 
bool gotData_
 
bool isFromPool_
 
connection_parameters lastConnectParameters_
 
std::string lastQuery_
 
std::ostream * logStream_
 
connection_poolpool_
 
std::size_t poolPosition_
 
std::ostringstream query_stream_
 
details::query_transformation_functionquery_transformation_
 
bool uppercaseColumnNames_
 

Detailed Description

Definition at line 40 of file session.h.

Constructor & Destructor Documentation

session::session ( )

Definition at line 35 of file core/session.cpp.

session::session ( connection_parameters const &  parameters)
explicit

Definition at line 42 of file core/session.cpp.

session::session ( backend_factory const &  factory,
std::string const &  connectString 
)

Definition at line 51 of file core/session.cpp.

session::session ( std::string const &  backendName,
std::string const &  connectString 
)

Definition at line 61 of file core/session.cpp.

session::session ( std::string const &  connectString)
explicit

Definition at line 71 of file core/session.cpp.

session::session ( connection_pool pool)
explicit

Definition at line 80 of file core/session.cpp.

session::~session ( )

Definition at line 91 of file core/session.cpp.

soci::session::session ( session const &  )
private

Member Function Documentation

void session::begin ( )

Definition at line 183 of file core/session.cpp.

void session::close ( )

Definition at line 145 of file core/session.cpp.

void session::commit ( )

Definition at line 190 of file core/session.cpp.

details::session_backend* soci::session::get_backend ( )
inline

Definition at line 118 of file session.h.

std::string session::get_backend_name ( ) const

Definition at line 366 of file core/session.cpp.

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

Definition at line 359 of file core/session.cpp.

std::string session::get_last_query ( ) const

Definition at line 292 of file core/session.cpp.

std::ostream * session::get_log_stream ( ) const

Definition at line 263 of file core/session.cpp.

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

Definition at line 352 of file core/session.cpp.

std::string session::get_query ( ) const

Definition at line 216 of file core/session.cpp.

std::ostringstream & session::get_query_stream ( )

Definition at line 204 of file core/session.cpp.

bool session::get_uppercase_column_names ( ) const

Definition at line 340 of file core/session.cpp.

bool session::got_data ( ) const

Definition at line 316 of file core/session.cpp.

void session::log_query ( std::string const &  query)

Definition at line 275 of file core/session.cpp.

blob_backend * session::make_blob_backend ( )

Definition at line 387 of file core/session.cpp.

rowid_backend * session::make_rowid_backend ( )

Definition at line 380 of file core/session.cpp.

statement_backend * session::make_statement_backend ( )

Definition at line 373 of file core/session.cpp.

void session::open ( connection_parameters const &  parameters)

Definition at line 104 of file core/session.cpp.

void session::open ( backend_factory const &  factory,
std::string const &  connectString 
)

Definition at line 128 of file core/session.cpp.

void session::open ( std::string const &  backendName,
std::string const &  connectString 
)

Definition at line 134 of file core/session.cpp.

void session::open ( std::string const &  connectString)

Definition at line 140 of file core/session.cpp.

template<typename T >
details::once_temp_type soci::session::operator<< ( T const &  t)
inline

Definition at line 73 of file session.h.

session& soci::session::operator= ( session const &  )
private
void session::reconnect ( )

Definition at line 159 of file core/session.cpp.

void session::rollback ( )

Definition at line 197 of file core/session.cpp.

void session::set_got_data ( bool  gotData)

Definition at line 304 of file core/session.cpp.

void session::set_log_stream ( std::ostream *  s)

Definition at line 251 of file core/session.cpp.

template<typename T >
void soci::session::set_query_transformation ( callback)
inline

Definition at line 79 of file session.h.

void session::set_query_transformation_ ( std::auto_ptr< details::query_transformation_function qtf)
private

Definition at line 237 of file core/session.cpp.

void session::uppercase_column_names ( bool  forceToUpper)

Definition at line 328 of file core/session.cpp.

Member Data Documentation

details::session_backend* soci::session::backEnd_
private

Definition at line 140 of file session.h.

bool soci::session::gotData_
private

Definition at line 142 of file session.h.

bool soci::session::isFromPool_
private

Definition at line 144 of file session.h.

connection_parameters soci::session::lastConnectParameters_
private

Definition at line 136 of file session.h.

std::string soci::session::lastQuery_
private

Definition at line 134 of file session.h.

std::ostream* soci::session::logStream_
private

Definition at line 133 of file session.h.

details::once_type soci::session::once

Definition at line 68 of file session.h.

connection_pool* soci::session::pool_
private

Definition at line 146 of file session.h.

std::size_t soci::session::poolPosition_
private

Definition at line 145 of file session.h.

details::prepare_type soci::session::prepare

Definition at line 69 of file session.h.

std::ostringstream soci::session::query_stream_
private

Definition at line 130 of file session.h.

details::query_transformation_function* soci::session::query_transformation_
private

Definition at line 131 of file session.h.

bool soci::session::uppercaseColumnNames_
private

Definition at line 138 of file session.h.


The documentation for this class 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