|
| DUCKDB_API | ArrowQueryResult (StatementType statement_type, StatementProperties properties, vector< string > names_p, vector< LogicalType > types_p, ClientProperties client_properties, idx_t batch_size) |
| | Creates a successful query result with the specified names and types.
|
| |
| DUCKDB_API | ArrowQueryResult (ErrorData error) |
| | Creates an unsuccessful query result with error condition.
|
| |
| DUCKDB_API string | ToString () override |
| | Converts the QueryResult to a string.
|
| |
| vector< unique_ptr< ArrowArrayWrapper > > | ConsumeArrays () |
| |
| vector< unique_ptr< ArrowArrayWrapper > > & | Arrays () |
| |
| void | SetArrowData (vector< unique_ptr< ArrowArrayWrapper > > arrays) |
| |
| idx_t | BatchSize () const |
| |
|
DUCKDB_API | QueryResult (QueryResultType type, StatementType statement_type, StatementProperties properties, vector< LogicalType > types, vector< string > names, ClientProperties client_properties) |
| | Creates a successful query result with the specified names and types.
|
| |
|
DUCKDB_API | QueryResult (QueryResultType type, ErrorData error) |
| | Creates an unsuccessful query result with error condition.
|
| |
| template<class TARGET > |
| TARGET & | Cast () |
| |
| template<class TARGET > |
| const TARGET & | Cast () const |
| |
|
DUCKDB_API const string & | ColumnName (idx_t index) const |
| | Returns the name of the column for the given index.
|
| |
| DUCKDB_API unique_ptr< DataChunk > | Fetch () |
| |
| DUCKDB_API unique_ptr< DataChunk > | FetchRaw () |
| |
| virtual DUCKDB_API string | ToBox (ClientContext &context, const BoxRendererConfig &config) |
| | Converts the QueryResult to a box-rendered string.
|
| |
|
DUCKDB_API void | Print () |
| | Prints the QueryResult to the console.
|
| |
| DUCKDB_API bool | Equals (QueryResult &other) |
| |
| bool | TryFetch (unique_ptr< DataChunk > &result, ErrorData &error) |
| |
| iterator | begin () |
| |
| iterator | end () |
| |
|
DUCKDB_API | BaseQueryResult (QueryResultType type, StatementType statement_type, StatementProperties properties, vector< LogicalType > types, vector< string > names) |
| | Creates a successful query result with the specified names and types.
|
| |
|
DUCKDB_API | BaseQueryResult (QueryResultType type, ErrorData error) |
| | Creates an unsuccessful query result with error condition.
|
| |
|
DUCKDB_API void | ThrowError (const string &prepended_message="") const |
| |
|
DUCKDB_API void | SetError (ErrorData error) |
| |
|
DUCKDB_API bool | HasError () const |
| |
|
DUCKDB_API const ExceptionType & | GetErrorType () const |
| |
|
DUCKDB_API const std::string & | GetError () const |
| |
|
DUCKDB_API ErrorData & | GetErrorObject () |
| |
|
DUCKDB_API idx_t | ColumnCount () |
| |
|
|
using | iterator = QueryResultIterator |
| |
|
static void | DeduplicateColumns (vector< string > &names) |
| | Deduplicate column names for interop with external libraries.
|
| |
|
ClientProperties | client_properties |
| | Properties from the client context.
|
| |
|
unique_ptr< QueryResult > | next |
| | The next result (if any)
|
| |
|
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)
|
| |