9 #ifndef SOCI_FIREBIRD_H_INCLUDED 10 #define SOCI_FIREBIRD_H_INCLUDED 14 # ifdef SOCI_FIREBIRD_SOURCE 15 # define SOCI_FIREBIRD_DECL __declspec(dllexport) 17 # define SOCI_FIREBIRD_DECL __declspec(dllimport) 19 # endif // SOCI_FIREBIRD_SOURCE 24 #ifndef SOCI_FIREBIRD_DECL 25 # define SOCI_FIREBIRD_DECL 50 ISC_STATUS
const * status = 0);
54 std::vector<ISC_STATUS> status_;
66 : statement_(st), buf_(NULL)
69 virtual void define_by_pos(
int &position,
72 virtual void pre_fetch();
73 virtual void post_fetch(
bool gotData,
bool calledFromFetch,
76 virtual void clean_up();
79 virtual void exchangeData();
92 : statement_(st), buf_(NULL)
95 virtual void define_by_pos(
int &position,
98 virtual void pre_fetch();
99 virtual void post_fetch(
bool gotData,
indicator *ind);
101 virtual void resize(std::size_t sz);
102 virtual std::size_t size();
104 virtual void clean_up();
107 virtual void exchangeData(std::size_t
row);
120 : statement_(st), buf_(NULL), indISCHolder_(0)
123 virtual void bind_by_pos(
int &position,
125 virtual void bind_by_name(std::string
const &name,
128 virtual void pre_use(
indicator const *ind);
129 virtual void post_use(
bool gotData,
indicator *ind);
131 virtual void clean_up();
134 virtual void exchangeData();
147 : statement_(st), inds_(NULL), buf_(NULL), indISCHolder_(0)
150 virtual void bind_by_pos(
int &position,
152 virtual void bind_by_name(std::string
const &name,
155 virtual void pre_use(
indicator const *ind);
157 virtual std::size_t size();
159 virtual void clean_up();
162 virtual void exchangeData(std::size_t
row);
178 virtual void alloc();
179 virtual void clean_up();
180 virtual void prepare(std::string
const &query,
186 virtual long long get_affected_rows();
187 virtual int get_number_of_rows();
189 virtual std::string rewrite_for_procedure_call(std::string
const &query);
191 virtual int prepare_for_describe();
192 virtual void describe_column(
int colNum,
data_type &dtype,
193 std::string &columnName);
220 virtual void exchangeData(
bool gotData,
int row);
221 virtual void prepareSQLDA(XSQLDA ** sqldap,
int size = 10);
222 virtual void rewriteQuery(std::string
const & query,
223 std::vector<char> & buffer);
224 virtual void rewriteParameters(std::string
const & src,
225 std::vector<char> & dst);
230 std::vector<std::vector<indicator> >
inds_;
253 virtual std::size_t get_len();
254 virtual std::size_t read(std::size_t offset,
char *buf,
256 virtual std::size_t write(std::size_t offset,
char const *buf,
257 std::size_t toWrite);
258 virtual std::size_t append(
char const *buf, std::size_t toWrite);
259 virtual void trim(std::size_t newLen);
264 virtual void assign(ISC_QUAD
const & bid)
285 virtual long getBLOBInfo();
287 virtual void writeBuffer(std::size_t offset,
char const * buf,
288 std::size_t toWrite);
289 virtual void cleanUp();
304 virtual void begin();
305 virtual void commit();
306 virtual void rollback();
308 virtual bool get_next_sequence_value(
session & s,
309 std::string
const & sequence,
long & value);
319 virtual void setDPBOption(
int const option, std::string
const & value);
349 #endif // SOCI_FIREBIRD_H_INCLUDED std::vector< void * > uses_
virtual void assign(ISC_QUAD const &bid)
firebird_standard_into_type_backend(firebird_statement_backend &st)
bool decimals_as_strings_
SOCI_FIREBIRD_DECL backend_factory const * factory_firebird()
std::vector< char > data_
firebird_vector_into_type_backend(firebird_statement_backend &st)
virtual std::string get_backend_name() const
details::exchange_type type_
details::exchange_type type_
firebird_session_backend & session_
SOCI_FIREBIRD_DECL void register_factory_firebird()
std::vector< void * > intos_
firebird_statement_backend & statement_
std::size_t const stat_size
SOCI_FIREBIRD_DECL firebird_backend_factory const firebird
#define SOCI_FIREBIRD_DECL
firebird_statement_backend & statement_
firebird_backend_factory()
std::size_t const SOCI_FIREBIRD_ERRMSG
bool get_option_decimals_as_strings()
firebird_session_backend & session_
std::map< std::string, int > names_
details::exchange_type type_
details::exchange_type type_
long long rowsAffectedBulk_
firebird_statement_backend & statement_
std::vector< ISM::CombinatorialTrainerParameters > parameters
firebird_standard_use_type_backend(firebird_statement_backend &st)
std::vector< std::vector< indicator > > inds_
firebird_statement_backend & statement_
firebird_vector_use_type_backend(firebird_statement_backend &st)