class toNoBlockQuery

This is class to be able to run a query in the background without blocking until a response is available from OCI. More...

Definition#include <tonoblockquery.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This is class to be able to run a query in the background without blocking until a response is available from OCI.

 toNoBlockQuery (toConnection &conn, const QString &sql, const toQList &param, toResultStats *statistics=NULL)

toNoBlockQuery

Create a new query.

Parameters:
connConnection to run on.
sqlSQL to execute.
paramParameters to pass to query.
statisticsOptional statistics widget to update with values from query.

 toNoBlockQuery (toConnection &conn, toQuery::queryMode mode, const QString &sql, const toQList &param, toResultStats *statistics=NULL)

toNoBlockQuery

Create a new query.

Parameters:
connConnection to run on.
modeQuery mode to execute query in.
sqlSQL to execute.
paramParameters to pass to query.
statisticsOptional statistics widget to update with values from query.

 ~toNoBlockQuery ()

~toNoBlockQuery

[virtual]

bool  poll (void)

poll

Poll if any result is available.

Returns: True if at least one row is available.

toQDescListdescribe (void)

describe

Get description of columns.

Returns: Description of columns list. Don't modify this list.

toQValue  readValue (void)

readValue

Read the next value from the query.

Returns: The next available value.

toQValue  readValueNull (void)

readValueNull

Read the next value from the query. Don't send NULL as string.

Returns: The next available value.

int  rowsProcessed (void)

rowsProcessed

Get the number of rows processed.

Returns: Number of rows processed.

bool  eof (void)

eof

Check if at end of query.

Returns: True if query is done.