7 #ifndef SOCI_SESSION_H_INCLUDED 8 #define SOCI_SESSION_H_INCLUDED 10 #pragma GCC diagnostic ignored "-Wdeprecated-declarations" 26 class backend_factory;
31 class session_backend;
32 class statement_backend;
38 class connection_pool;
44 void set_query_transformation_(std::auto_ptr<details::query_transformation_function> qtf);
50 session(std::string
const & backendName, std::string
const & connectString);
51 explicit session(std::string
const & connectString);
57 void open(
backend_factory const & factory, std::string
const & connectString);
58 void open(std::string
const & backendName, std::string
const & connectString);
59 void open(std::string
const & connectString);
75 std::ostringstream & get_query_stream();
76 std::string get_query()
const;
82 set_query_transformation_(qtf);
84 assert(qtf.get() == NULL);
88 void set_log_stream(std::ostream * s);
89 std::ostream * get_log_stream()
const;
91 void log_query(std::string
const & query);
92 std::string get_last_query()
const;
94 void set_got_data(
bool gotData);
95 bool got_data()
const;
97 void uppercase_column_names(
bool forceToUpper);
99 bool get_uppercase_column_names()
const;
108 bool get_next_sequence_value(std::string
const & sequence,
long & value);
113 bool get_last_insert_id(std::string
const & table,
long & value);
120 std::string get_backend_name()
const;
151 #endif // SOCI_SESSION_H_INCLUDED details::once_temp_type operator<<(T const &t)
std::ostream * logStream_
details::session_backend * backEnd_
details::session_backend * get_backend()
std::ostringstream query_stream_
connection_parameters lastConnectParameters_
bool uppercaseColumnNames_
void set_query_transformation(T callback)
details::query_transformation_function * query_transformation_
std::string connectString
std::size_t poolPosition_
std::vector< ISM::CombinatorialTrainerParameters > parameters
details::prepare_type prepare