#include <psqlstatement.h>
Public Types | |
| enum | state_t { Initial, Prepared, Executed } |
Public Member Functions | |
| SQLStatement (SQLConnection &conn, const std::string &stmt="") | |
| virtual | ~SQLStatement () |
| void | prepare () throw (SQLError) |
| Prepare the statement. | |
| void | exec () throw (SQLError) |
| Execute the statement. | |
| std::auto_ptr< SQLResult > | result () throw (SQLError) |
| Get the statement result. | |
| sqlcount_t | affectedRows () const throw () |
| Returns the number of rows affected. | |
| void | format (const std::string &fmt, const std::map< std::string, const SQLValue * > &vals) |
| state_t | state () const throw () |
| SQLConnection & | conn () const throw () |
| SQLStatement & | operator<< (char ch) |
| SQLStatement & | operator<< (const char *str) |
| SQLStatement & | operator<< (const std::string &str) |
| SQLStatement & | operator<< (const SQLValue &val) |
Protected Member Functions | |
| const std::auto_ptr< SQLDriver::StatementHandle > & | handle () const throw () |
Friends | |
| class | SQLResult |
Definition at line 74 of file psqlstatement.h.
|
|
Definition at line 78 of file psqlstatement.h. |
|
||||||||||||
|
|
|
|
|
|
|
Returns the number of rows affected.
|
|
|
Definition at line 104 of file psqlstatement.h. |
|
|
Execute the statement.
|
|
||||||||||||
|
|
|
|
Definition at line 114 of file psqlstatement.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Prepare the statement.
|
|
|
Get the statement result.
|
|
|
Definition at line 101 of file psqlstatement.h. |
|
|
Definition at line 75 of file psqlstatement.h. |
1.3.3