libdballe
7.6
|
ODBC statement to read a sequence. More...
#include <internals.h>
Public Member Functions | |
Sequence (ODBCConnection &conn, const char *name) | |
const int & | read () |
Read the current value of the sequence. | |
![]() | |
ODBCStatement (ODBCConnection &conn) | |
ODBCStatement (const ODBCStatement &)=delete | |
ODBCStatement (const ODBCStatement &&)=delete | |
ODBCStatement & | operator= (const ODBCStatement &)=delete |
void | bind_in (int idx, const int &val) |
void | bind_in (int idx, const int &val, const SQLLEN &ind) |
void | bind_in (int idx, const unsigned &val) |
void | bind_in (int idx, const unsigned &val, const SQLLEN &ind) |
void | bind_in (int idx, const unsigned short &val) |
void | bind_in (int idx, const unsigned short &val, const SQLLEN &ind) |
void | bind_in (int idx, const char *val) |
void | bind_in (int idx, const char *val, const SQLLEN &ind) |
void | bind_in (int idx, const std::string &val) |
void | bind_in (int idx, const SQL_TIMESTAMP_STRUCT &val) |
void | bind_out (int idx, int &val) |
void | bind_out (int idx, int &val, SQLLEN &ind) |
void | bind_out (int idx, unsigned &val) |
void | bind_out (int idx, unsigned &val, SQLLEN &ind) |
void | bind_out (int idx, unsigned short &val) |
void | bind_out (int idx, unsigned short &val, SQLLEN &ind) |
void | bind_out (int idx, char *val, SQLLEN buflen) |
void | bind_out (int idx, char *val, SQLLEN buflen, SQLLEN &ind) |
void | bind_out (int idx, SQL_TIMESTAMP_STRUCT &val) |
void | bind_out (int idx, SQL_TIMESTAMP_STRUCT &val, SQLLEN &ind) |
void | prepare (const char *query) |
void | prepare (const char *query, int qlen) |
void | prepare (const std::string &query) |
int | execute () |
int | execute_and_close () |
int | exec_direct_and_close (const char *query, int qlen) |
void | execute_ignoring_results () |
int | columns_count () |
bool | fetch () |
bool | fetch_expecting_one () |
void | close_cursor () |
void | close_cursor_if_needed () |
size_t | select_rowcount () |
Row count for select operations. | |
size_t | rowcount () |
Row count for insert, delete and other non-select operations. | |
void | set_cursor_forward_only () |
void | set_cursor_static () |
Data Fields | |
int | out |
![]() | |
const ODBCConnection & | conn |
SQLHSTMT | stm = nullptr |
const char * | ignore_error = nullptr |
If non-NULL, ignore all errors with this code. | |
Additional Inherited Members | |
![]() | |
bool | error_is_ignored () |
bool | is_error (int sqlres) |
ODBC statement to read a sequence.