Sparksee 6.1.0
Query Class Reference

Query class. More...

#include <Query.h>

Inheritance diagram for Query:
Inheritance graph
Collaboration diagram for Query:
Collaboration graph

Public Member Functions

virtual ~Query ()
 Destructor.
ResultSetExecute (const std::wstring &stmt, bool_t reiterable=false)
 Executes the given statement.
QueryStreamSetStream (const std::wstring &stream, QueryStream *handler)
 Sets a query stream handler Query streams handlers are created and destroyed by the caller.
void SetDynamic (const std::wstring &name, Value &value)
 Sets the value for a dynamic paramater.

Friends

class Session
class QueryContext

Detailed Description

Query class.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Member Function Documentation

◆ Execute()

ResultSet * Query::Execute ( const std::wstring & stmt,
bool_t reiterable = false )

Executes the given statement.

Parameters
stmt[in] Query statement.
reiterable[in] Whether we want the resultset to be reiterable or not
Returns
A ResultSet instance with the contents of the result of the query.

◆ SetDynamic()

void Query::SetDynamic ( const std::wstring & name,
Value & value )

Sets the value for a dynamic paramater.

Parameters
name[in] Parameter name
value[in] Parameter value

◆ SetStream()

QueryStream * Query::SetStream ( const std::wstring & stream,
QueryStream * handler )

Sets a query stream handler Query streams handlers are created and destroyed by the caller.

Deprecated
QueryStreams should be handled by a QueryStreamManager setup at database level instead.
Parameters
stream[in] The stream name
handler[in] Query stream handler
Returns
The previous handler, or NULL if it does not exists

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