libdballe  7.6
Public Member Functions | Data Fields
dballe::db::Sequence Struct Reference

ODBC statement to read a sequence. More...

#include <internals.h>

Inheritance diagram for dballe::db::Sequence:
dballe::db::ODBCStatement

Public Member Functions

 Sequence (ODBCConnection &conn, const char *name)
 
const int & read ()
 Read the current value of the sequence.
 
- Public Member Functions inherited from dballe::db::ODBCStatement
 ODBCStatement (ODBCConnection &conn)
 
 ODBCStatement (const ODBCStatement &)=delete
 
 ODBCStatement (const ODBCStatement &&)=delete
 
ODBCStatementoperator= (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
 
- Data Fields inherited from dballe::db::ODBCStatement
const ODBCConnectionconn
 
SQLHSTMT stm = nullptr
 
const char * ignore_error = nullptr
 If non-NULL, ignore all errors with this code.
 

Additional Inherited Members

- Protected Member Functions inherited from dballe::db::ODBCStatement
bool error_is_ignored ()
 
bool is_error (int sqlres)
 

Detailed Description

ODBC statement to read a sequence.


The documentation for this struct was generated from the following file: