9 #ifndef SOCI_MYSQL_H_INCLUDED 10 #define SOCI_MYSQL_H_INCLUDED 14 # ifdef SOCI_MYSQL_SOURCE 15 # define SOCI_MYSQL_DECL __declspec(dllexport) 17 # define SOCI_MYSQL_DECL __declspec(dllimport) 19 # endif // SOCI_MYSQL_SOURCE 23 #ifndef SOCI_MYSQL_DECL 24 # define SOCI_MYSQL_DECL 53 virtual void define_by_pos(
int &position,
56 virtual void pre_fetch();
57 virtual void post_fetch(
bool gotData,
bool calledFromFetch,
60 virtual void clean_up();
74 virtual void define_by_pos(
int &position,
77 virtual void pre_fetch();
78 virtual void post_fetch(
bool gotData,
indicator *ind);
80 virtual void resize(std::size_t sz);
81 virtual std::size_t size();
83 virtual void clean_up();
95 : statement_(st), position_(0), buf_(NULL) {}
97 virtual void bind_by_pos(
int &position,
99 virtual void bind_by_name(std::string
const &name,
102 virtual void pre_use(
indicator const *ind);
103 virtual void post_use(
bool gotData,
indicator *ind);
105 virtual void clean_up();
119 : statement_(st), position_(0) {}
121 virtual void bind_by_pos(
int &position,
123 virtual void bind_by_name(std::string
const &name,
126 virtual void pre_use(
indicator const *ind);
128 virtual std::size_t size();
130 virtual void clean_up();
146 virtual void alloc();
147 virtual void clean_up();
148 virtual void prepare(std::string
const &query,
154 virtual long long get_affected_rows();
155 virtual int get_number_of_rows();
157 virtual std::string rewrite_for_procedure_call(std::string
const &query);
159 virtual int prepare_for_describe();
160 virtual void describe_column(
int colNum,
data_type &dtype,
161 std::string &columnName);
220 virtual std::size_t get_len();
221 virtual std::size_t read(std::size_t offset,
char *buf,
223 virtual std::size_t write(std::size_t offset,
char const *buf,
224 std::size_t toWrite);
225 virtual std::size_t append(
char const *buf, std::size_t toWrite);
226 virtual void trim(std::size_t newLen);
237 virtual void begin();
238 virtual void commit();
239 virtual void rollback();
273 #endif // SOCI_MYSQL_H_INCLUDED
virtual std::string get_backend_name() const
mysql_statement_backend & statement_
mysql_session_backend & session_
mysql_statement_backend & statement_
long long rowsAffectedBulk_
details::exchange_type type_
bool hasVectorUseElements_
std::vector< MYSQL_ROW_OFFSET > resultRowOffsets_
details::exchange_type type_
details::exchange_type type_
mysql_session_backend & session_
std::vector< std::string > names_
details::exchange_type type_
SOCI_MYSQL_DECL backend_factory const * factory_mysql()
std::map< std::string, char ** > UseByNameBuffersMap
mysql_standard_use_type_backend(mysql_statement_backend &st)
mysql_standard_into_type_backend(mysql_statement_backend &st)
bool hasVectorIntoElements_
mysql_soci_error(std::string const &msg, int errNum)
std::map< int, char ** > UseByPosBuffersMap
UseByNameBuffersMap useByNameBuffers_
SOCI_MYSQL_DECL mysql_backend_factory const mysql
std::vector< char * > buffers_
mysql_statement_backend & statement_
std::vector< std::string > queryChunks_
mysql_vector_use_type_backend(mysql_statement_backend &st)
mysql_vector_into_type_backend(mysql_statement_backend &st)
SOCI_MYSQL_DECL void register_factory_mysql()
std::vector< ISM::CombinatorialTrainerParameters > parameters
UseByPosBuffersMap useByPosBuffers_
mysql_statement_backend & statement_