#include <Query.h>
Public Member Functions | |
| Query (SQLHDBC connectionHandle) | |
| Constructor called by the Database object. | |
| ~Query () | |
| Destructor deallocates any memory or resources. | |
| void | bind (Column *columns[], int numberColumns) |
| Bind the given columns to this query context. | |
| void | execute (const std::string &sqlQuery) |
| Execute the given query. | |
| bool | fetchRow () |
| Fetches a row of data returned by the SQL query. | |
Protected Attributes | |
| SQLHSTMT | statementHandle |
| ODBC statement handle. | |
| SQLHDBC | connectionHandle |
| ODBC connection handle. | |
Classes | |
| class | Exception |
| Query exception class. More... | |
This class is created by the Database object. It encapsulates details pertaining to a database query.
complete.cpp, factory.cpp, and simple.cpp.
|
|
Constructor called by the Database object.
|
|
||||||||||||
|
Bind the given columns to this query context.
|
|
|
Execute the given query.
|
|
|
Fetches a row of data returned by the SQL query.
|