#include <session.h>
Public Member Functions | |
void | begin () |
void | close () |
void | commit () |
details::session_backend * | get_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_backend * | make_blob_backend () |
details::rowid_backend * | make_rowid_backend () |
details::statement_backend * | make_statement_backend () |
void | open (connection_parameters const ¶meters) |
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 ¶meters) | |
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 | |
session & | operator= (session const &) |
session (session const &) | |
void | set_query_transformation_ (std::auto_ptr< details::query_transformation_function > qtf) |
Private Attributes | |
details::session_backend * | backEnd_ |
bool | gotData_ |
bool | isFromPool_ |
connection_parameters | lastConnectParameters_ |
std::string | lastQuery_ |
std::ostream * | logStream_ |
connection_pool * | pool_ |
std::size_t | poolPosition_ |
std::ostringstream | query_stream_ |
details::query_transformation_function * | query_transformation_ |
bool | uppercaseColumnNames_ |
session::session | ( | ) |
Definition at line 35 of file core/session.cpp.
|
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.
|
explicit |
Definition at line 71 of file core/session.cpp.
|
explicit |
Definition at line 80 of file core/session.cpp.
session::~session | ( | ) |
Definition at line 91 of file core/session.cpp.
|
private |
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.
|
inline |
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.
|
inline |
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.
|
inline |
|
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.
|
private |
|
private |
details::once_type soci::session::once |
|
private |
details::prepare_type soci::session::prepare |
|
private |