GPUdb C++ API
Version 7.1.10.0
|
A set of input parameters for const. More...
#include <gpudb/protocol/execute_sql.h>
Public Member Functions | |
ExecuteSqlRequest () | |
Constructs an ExecuteSqlRequest object with default parameter values. More... | |
ExecuteSqlRequest (const std::string &statement_, const int64_t offset_, const int64_t limit_, const std::string &requestSchemaStr_, const std::vector< std::vector< uint8_t > > &data_, const std::map< std::string, std::string > &options_) | |
Constructs an ExecuteSqlRequest object with the specified parameters. More... | |
ExecuteSqlRequest (const std::string &statement_, const int64_t offset_, const int64_t limit_, const std::string &encoding_, const std::string &requestSchemaStr_, const std::vector< std::vector< uint8_t > > &data_, const std::map< std::string, std::string > &options_) | |
Constructs an ExecuteSqlRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | statement |
int64_t | offset |
int64_t | limit |
std::string | encoding |
std::string | requestSchemaStr |
std::vector< std::vector < uint8_t > > | data |
std::map< std::string, std::string > | options |
A set of input parameters for const.
Execute a SQL statement (query, DML, or DDL).
See SQL Support for the complete set of supported SQL commands.
Definition at line 23 of file execute_sql.h.
|
inline |
Constructs an ExecuteSqlRequest object with default parameter values.
Definition at line 30 of file execute_sql.h.
|
inline |
Constructs an ExecuteSqlRequest object with the specified parameters.
[in] | statement_ | SQL statement (query, DML, or DDL) to be executed |
[in] | offset_ | A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The minimum allowed value is 0. The maximum allowed value is MAX_INT. |
[in] | limit_ | A positive integer indicating the maximum number of results to be returned, or END_OF_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server's own limit, defined by the max_get_records_size parameter in the server configuration. Use hasMoreRecords to see if more records exist in the result to be fetched, and offset & limit to request subsequent pages of results. |
[in] | requestSchemaStr_ | Avro schema of data. |
[in] | data_ | An array of binary-encoded data for the records to be binded to the SQL query. Or use query_parameters to pass the data in JSON format. |
[in] | options_ | Optional parameters.
|
Definition at line 282 of file execute_sql.h.
|
inline |
Constructs an ExecuteSqlRequest object with the specified parameters.
[in] | statement_ | SQL statement (query, DML, or DDL) to be executed |
[in] | offset_ | A positive integer indicating the number of initial results to skip (this can be useful for paging through the results). The minimum allowed value is 0. The maximum allowed value is MAX_INT. |
[in] | limit_ | A positive integer indicating the maximum number of results to be returned, or END_OF_SET (-9999) to indicate that the maximum number of results allowed by the server should be returned. The number of records returned will never exceed the server's own limit, defined by the max_get_records_size parameter in the server configuration. Use hasMoreRecords to see if more records exist in the result to be fetched, and offset & limit to request subsequent pages of results. |
[in] | encoding_ | Specifies the encoding for returned records; either 'binary' or 'json'. The default value is gpudb::execute_sql_binary. |
[in] | requestSchemaStr_ | Avro schema of data. |
[in] | data_ | An array of binary-encoded data for the records to be binded to the SQL query. Or use query_parameters to pass the data in JSON format. |
[in] | options_ | Optional parameters.
|
Definition at line 542 of file execute_sql.h.
std::vector<std::vector<uint8_t> > gpudb::ExecuteSqlRequest::data |
Definition at line 558 of file execute_sql.h.
std::string gpudb::ExecuteSqlRequest::encoding |
Definition at line 556 of file execute_sql.h.
int64_t gpudb::ExecuteSqlRequest::limit |
Definition at line 555 of file execute_sql.h.
int64_t gpudb::ExecuteSqlRequest::offset |
Definition at line 554 of file execute_sql.h.
std::map<std::string, std::string> gpudb::ExecuteSqlRequest::options |
Definition at line 559 of file execute_sql.h.
std::string gpudb::ExecuteSqlRequest::requestSchemaStr |
Definition at line 557 of file execute_sql.h.
std::string gpudb::ExecuteSqlRequest::statement |
Definition at line 553 of file execute_sql.h.