|
|
QueryResultType | type |
| | The type of the result (MATERIALIZED or STREAMING).
|
|
StatementType | statement_type |
| | The type of the statement that created this result.
|
|
StatementProperties | properties |
| | Properties of the statement.
|
|
vector< LogicalType > | types |
| | The SQL types of the result.
|
|
vector< string > | names |
| | The names of the result.
|
|
|
bool | success |
| | Whether or not execution was successful.
|
|
ErrorData | error |
| | The error (in case execution was not successful).
|
◆ BaseQueryResult() [1/2]
Creates a successful query result with the specified names and types.
296005}
StatementProperties properties
Properties of the statement.
Definition duckdb.hpp:19520
StatementType statement_type
The type of the statement that created this result.
Definition duckdb.hpp:19518
bool success
Whether or not execution was successful.
Definition duckdb.hpp:19537
vector< LogicalType > types
The SQL types of the result.
Definition duckdb.hpp:19522
QueryResultType type
The type of the result (MATERIALIZED or STREAMING).
Definition duckdb.hpp:19516
vector< string > names
The names of the result.
Definition duckdb.hpp:19524
◆ BaseQueryResult() [2/2]
| duckdb::BaseQueryResult::BaseQueryResult |
( |
QueryResultType | type, |
|
|
ErrorData | error ) |
Creates an unsuccessful query result with error condition.
296009
296010 D_ASSERT(this->
error.HasError());
296011}
ErrorData error
The error (in case execution was not successful).
Definition duckdb.hpp:19539
◆ ~BaseQueryResult()
| duckdb::BaseQueryResult::~BaseQueryResult |
( |
| ) |
|
|
virtual |
◆ ThrowError()
| void duckdb::BaseQueryResult::ThrowError |
( |
const string & | prepended_message = "" | ) |
const |
296016 {
296017 D_ASSERT(HasError());
296018 error.Throw(prepended_message);
296019}
◆ SetError()
| void duckdb::BaseQueryResult::SetError |
( |
ErrorData | error | ) |
|
◆ HasError()
| bool duckdb::BaseQueryResult::HasError |
( |
| ) |
const |
◆ GetErrorType()
| const ExceptionType & duckdb::BaseQueryResult::GetErrorType |
( |
| ) |
const |
296031 {
296032 return error.Type();
296033}
◆ GetError()
| const std::string & duckdb::BaseQueryResult::GetError |
( |
| ) |
const |
296035 {
296036 D_ASSERT(HasError());
296037 return error.Message();
296038}
◆ GetErrorObject()
| ErrorData & duckdb::BaseQueryResult::GetErrorObject |
( |
| ) |
|
◆ ColumnCount()
| idx_t duckdb::BaseQueryResult::ColumnCount |
( |
| ) |
|
296044 {
296045 return types.size();
296046}
The documentation for this class was generated from the following files: