MySQL  8.0.21
Source Code Documentation
Query_result_to_file Class Reference

#include <query_result.h>

Inheritance diagram for Query_result_to_file:
Query_result_interceptor Query_result Query_result_dump Query_result_export

Public Member Functions

 Query_result_to_file (sql_exchange *ex)
 
 ~Query_result_to_file () override
 
bool needs_file_privilege () const override
 
void send_error (THD *thd, uint errcode, const char *err) override
 
bool send_eof (THD *thd) override
 
void cleanup (THD *thd) override
 Cleanup after this execution. More...
 
- Public Member Functions inherited from Query_result_interceptor
 Query_result_interceptor ()
 
uint field_count (List< Item > &) const override
 
bool send_result_set_metadata (THD *, List< Item > &, uint) override
 
bool is_interceptor () const override final
 Checks if this Query_result intercepts and transforms the result set. More...
 
- Public Member Functions inherited from Query_result
 Query_result ()
 
virtual ~Query_result ()
 
virtual bool change_query_result (THD *, Query_result *)
 Change wrapped Query_result. More...
 
virtual bool need_explain_interceptor () const
 
virtual bool prepare (THD *, List< Item > &, SELECT_LEX_UNIT *u)
 Perform preparation specific to the query expression or DML statement. More...
 
virtual bool optimize ()
 Optimize the result processing of a query expression, applicable to data change operation (not simple select queries). More...
 
virtual bool start_execution (THD *)
 Prepare for execution of the query expression or DML statement. More...
 
virtual bool send_data (THD *thd, List< Item > &items)=0
 
virtual bool check_simple_select () const
 Check if this query returns a result set and therefore is allowed in cursors and set an error message if it is not the case. More...
 
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...
 
void begin_dataset ()
 
virtual const ha_rowsrow_count () const
 
virtual bool immediate_update (TABLE_LIST *t) const
 If this Query_result performs modifications to tables: tells if it modifies the given table's row as it's read (a.k.a. More...
 

Protected Attributes

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

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)
inlineexplicit

◆ ~Query_result_to_file()

Query_result_to_file::~Query_result_to_file ( )
inlineoverride

Member Function Documentation

◆ cleanup()

void Query_result_to_file::cleanup ( THD )
overridevirtual

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
inlineoverridevirtual

Reimplemented from Query_result.

◆ send_eof()

bool Query_result_to_file::send_eof ( THD thd)
overridevirtual

Implements Query_result.

◆ send_error()

void Query_result_to_file::send_error ( THD thd,
uint  errcode,
const char *  err 
)
overridevirtual

Reimplemented from Query_result.

Member Data Documentation

◆ cache

IO_CACHE Query_result_to_file::cache
protected

◆ exchange

sql_exchange* Query_result_to_file::exchange
protected

◆ file

File Query_result_to_file::file
protected

◆ path

char Query_result_to_file::path[FN_REFLEN]
protected

◆ row_count

ha_rows Query_result_to_file::row_count
protected

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