Apache Ignite C++ Client
Loading...
Searching...
No Matches
ignite::sql Class Reference

#include <sql.h>

Public Member Functions

IGNITE_API void execute_async (transaction *tx, cancellation_token *token, const sql_statement &statement, std::vector< primitive > args, ignite_callback< result_set > callback)
IGNITE_API result_set execute (transaction *tx, cancellation_token *token, const sql_statement &statement, std::vector< primitive > args)
IGNITE_API void execute_script_async (cancellation_token *token, const sql_statement &statement, std::vector< primitive > args, ignite_callback< void > callback)
IGNITE_API void execute_script (cancellation_token *token, const sql_statement &statement, std::vector< primitive > args)

Friends

class ignite_client

Detailed Description

Ignite SQL query facade.

Member Function Documentation

◆ execute()

IGNITE_API result_set ignite::sql::execute ( transaction * tx,
cancellation_token * token,
const sql_statement & statement,
std::vector< primitive > args )
inline

Executes a single SQL statement and returns rows.

Parameters
txOptional transaction. If nullptr implicit transaction for this single operation is used.
tokenCancellation token. Can be nullptr.
statementStatement to execute.
argsArguments for the statement (can be empty).
Returns
SQL result set.

◆ execute_async()

void ignite::sql::execute_async ( transaction * tx,
cancellation_token * token,
const sql_statement & statement,
std::vector< primitive > args,
ignite_callback< result_set > callback )

Executes a single SQL statement asynchronously and returns rows.

Parameters
txOptional transaction. If nullptr implicit transaction for this single operation is used.
tokenCancellation token. Can be nullptr.
statementStatement to execute.
argsArguments for the statement (can be empty).
callbackA callback called on operation completion with SQL result set.

◆ execute_script()

IGNITE_API void ignite::sql::execute_script ( cancellation_token * token,
const sql_statement & statement,
std::vector< primitive > args )
inline

Executes a multi-statement SQL query.

Parameters
tokenCancellation token. Can be nullptr.
statementStatement to execute.
argsArguments for the template (can be empty).

◆ execute_script_async()

void ignite::sql::execute_script_async ( cancellation_token * token,
const sql_statement & statement,
std::vector< primitive > args,
ignite_callback< void > callback )

Executes a multi-statement SQL query asynchronously.

Parameters
tokenCancellation token. Can be nullptr.
statementStatement to execute.
argsArguments for the template (can be empty).
callbackA callback called on operation completion with SQL result set.

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