8 #ifndef SOCI_SQLITE3_H_INCLUDED 9 #define SOCI_SQLITE3_H_INCLUDED 13 # ifdef SOCI_SQLITE3_SOURCE 14 # define SOCI_SQLITE3_DECL __declspec(dllexport) 16 # define SOCI_SQLITE3_DECL __declspec(dllimport) 17 # endif // SOCI_SQLITE3_SOURCE 22 #ifndef SOCI_SQLITE3_DECL 23 # define SOCI_SQLITE3_DECL 33 #pragma warning(disable:4510 4512 4610) 39 #if SQLITE_VERSION_NUMBER < 3003010 50 #define SQLITE_STATIC ((sqlite_api::sqlite3_destructor_type)0) 76 virtual void define_by_pos(
int &position,
79 virtual void pre_fetch();
80 virtual void post_fetch(
bool gotData,
bool calledFromFetch,
83 virtual void clean_up();
100 void post_fetch(
bool gotData,
indicator* ind);
102 void resize(std::size_t sz);
105 virtual void clean_up();
117 : statement_(st), buf_(0) {}
119 virtual void bind_by_pos(
int &position,
121 virtual void bind_by_name(std::string
const &name,
124 virtual void pre_use(
indicator const *ind);
125 virtual void post_use(
bool gotData,
indicator *ind);
127 virtual void clean_up();
143 virtual void bind_by_pos(
int &position,
145 virtual void bind_by_name(std::string
const &name,
148 virtual void pre_use(
indicator const *ind);
150 virtual std::size_t size();
152 virtual void clean_up();
178 virtual void alloc();
179 virtual void clean_up();
180 virtual void prepare(std::string
const &query,
182 void reset_if_needed();
187 virtual long long get_affected_rows();
188 virtual int get_number_of_rows();
190 virtual std::string rewrite_for_procedure_call(std::string
const &query);
192 virtual int prepare_for_describe();
193 virtual void describe_column(
int colNum,
data_type &dtype,
194 std::string &columnName);
232 virtual std::size_t get_len();
233 virtual std::size_t read(std::size_t offset,
char *buf,
235 virtual std::size_t write(std::size_t offset,
char const *buf,
236 std::size_t toWrite);
237 virtual std::size_t append(
char const *buf, std::size_t toWrite);
238 virtual void trim(std::size_t newLen);
242 std::size_t set_data(
char const *buf, std::size_t toWrite);
255 virtual void begin();
256 virtual void commit();
257 virtual void rollback();
290 #endif // SOCI_SQLITE3_H_INCLUDED
sqlite3_session_backend & session_
SOCI_SQLITE3_DECL void register_factory_sqlite3()
sqlite3_backend_factory()
sqlite3_standard_into_type_backend(sqlite3_statement_backend &st)
void(* sqlite3_destructor_type)(void *)
sqlite3_statement_backend & statement_
sqlite3_statement_backend & statement_
details::exchange_type type_
SOCI_SQLITE3_DECL sqlite3_backend_factory const sqlite3
details::exchange_type type_
long long rowsAffectedBulk_
SOCI_SQLITE3_DECL backend_factory const * factory_sqlite3()
sqlite3_standard_use_type_backend(sqlite3_statement_backend &st)
sqlite3_vector_use_type_backend(sqlite3_statement_backend &st)
sqlite3_recordset useData_
sqlite3_statement_backend & statement_
std::vector< sqlite3_column > sqlite3_row
#define SOCI_SQLITE3_DECL
virtual std::string get_backend_name() const
sqlite3_vector_into_type_backend(sqlite3_statement_backend &st)
sqlite_api::sqlite3_stmt * stmt_
details::exchange_type type_
sqlite3_session_backend & session_
sqlite3_recordset dataCache_
sqlite_api::sqlite3 * conn_
std::vector< ISM::CombinatorialTrainerParameters > parameters
std::vector< sqlite3_row > sqlite3_recordset
details::exchange_type type_
sqlite3_statement_backend & statement_