MySQL 8.4.0
Source Code Documentation
Query_result_to_file Class Reference

#include <query_result.h>

Inheritance diagram for Query_result_to_file:

Public Member Functions

 Query_result_to_file (sql_exchange *ex)
 ~Query_result_to_file () override
bool needs_file_privilege () const override
bool check_supports_cursor () const override
 Check if this query result set supports cursors. More...
bool send_eof (THD *thd) override
void cleanup () override
 Cleanup after this execution. More...
- Public Member Functions inherited from Query_result_interceptor
 Query_result_interceptor ()
uint field_count (const mem_root_deque< Item * > &) const override
bool send_result_set_metadata (THD *, const mem_root_deque< Item * > &, uint) override
- Public Member Functions inherited from Query_result
 Query_result ()
virtual ~Query_result ()=default
virtual bool change_query_result (THD *, Query_result *)
 Change wrapped Query_result. More...
virtual bool need_explain_interceptor () const
virtual bool prepare (THD *, const mem_root_deque< Item * > &, Query_expression *u)
 Perform preparation specific to the query expression or DML statement. More...
virtual bool start_execution (THD *)
 Prepare for execution of the query expression or DML statement. More...
virtual bool create_table_for_query_block (THD *)
 Create table, only needed to support CREATE TABLE ... SELECT. More...
virtual bool send_data (THD *thd, const mem_root_deque< Item * > &items)=0
virtual void abort_result_set (THD *)
virtual bool reset ()
 Cleanup after one execution of the unit, to be ready for a next execution inside the same statement. More...
virtual bool use_protocol_adapter () const
virtual bool use_protocol_wrapper () const
virtual void set_limit (ha_rows)
 Only overridden (and non-empty) for Query_result_union, q.v. More...
virtual Server_side_cursorcursor () const

Protected Attributes

File file
IO_CACHE cache
ha_rows row_count
char path [FN_REFLEN]
- Protected Attributes inherited from Query_result

Additional Inherited Members

- Public Attributes inherited from Query_result
ha_rows estimated_rowcount
 Number of records estimated in this result. More...
double estimated_cost
 Cost to execute the subquery which produces this result. More...

Constructor & Destructor Documentation

◆ Query_result_to_file()

Query_result_to_file::Query_result_to_file ( sql_exchange ex)

◆ ~Query_result_to_file()

Query_result_to_file::~Query_result_to_file ( )

Member Function Documentation

◆ check_supports_cursor()

bool Query_result_to_file::check_supports_cursor ( ) const

Check if this query result set supports cursors.

false if success, true if error

Reimplemented from Query_result.

◆ cleanup()

void Query_result_to_file::cleanup ( )

Cleanup after this execution.

Completes the execution and resets object before next execution of a prepared statement/stored procedure.

Reimplemented from Query_result.

Reimplemented in Query_result_export.

◆ needs_file_privilege()

bool Query_result_to_file::needs_file_privilege ( ) const

Reimplemented from Query_result.

◆ send_eof()

bool Query_result_to_file::send_eof ( THD thd)

Implements Query_result.

Member Data Documentation

◆ cache

IO_CACHE Query_result_to_file::cache

◆ exchange

sql_exchange* Query_result_to_file::exchange

◆ file

File Query_result_to_file::file

◆ path

char Query_result_to_file::path[FN_REFLEN]

◆ row_count

ha_rows Query_result_to_file::row_count

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