MySQL 8.0.40
Source Code Documentation
Query_result_export Class Referencefinal

#include <query_result.h>

Inheritance diagram for Query_result_export:
[legend]

Public Member Functions

 Query_result_export (sql_exchange *ex)
 
bool prepare (THD *thd, const mem_root_deque< Item * > &list, Query_expression *u) override
 Perform preparation specific to the query expression or DML statement. More...
 
bool start_execution (THD *thd) override
 Prepare for execution of the query expression or DML statement. More...
 
bool send_data (THD *thd, const mem_root_deque< Item * > &items) override
 
void cleanup () override
 Cleanup after this execution. More...
 
- Public Member Functions inherited from Query_result_to_file
 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
 
- 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
 
bool is_interceptor () const 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 ()=default
 
virtual bool change_query_result (THD *, Query_result *)
 Change wrapped Query_result. More...
 
virtual bool need_explain_interceptor () const
 
virtual bool create_table_for_query_block (THD *)
 Create table, only needed to support CREATE TABLE ... SELECT. 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...
 
virtual void set_limit (ha_rows)
 Only overridden (and non-empty) for Query_result_union, q.v. More...
 
virtual Server_side_cursorcursor () const
 

Private Attributes

size_t field_term_length
 
int field_sep_char
 
int escape_char
 
int line_sep_char
 
int field_term_char
 
bool is_ambiguous_field_sep
 
bool is_ambiguous_field_term
 
bool is_unsafe_field_sep
 
bool fixed_row_size
 
const CHARSET_INFOwrite_cs
 

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...
 
- Protected Attributes inherited from Query_result_to_file
sql_exchangeexchange
 
File file
 
IO_CACHE cache
 
ha_rows row_count
 
char path [FN_REFLEN]
 
- Protected Attributes inherited from Query_result
Query_expressionunit
 

Constructor & Destructor Documentation

◆ Query_result_export()

Query_result_export::Query_result_export ( sql_exchange ex)
inlineexplicit

Member Function Documentation

◆ cleanup()

void Query_result_export::cleanup ( )
overridevirtual

Cleanup after this execution.

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

Reimplemented from Query_result_to_file.

◆ prepare()

bool Query_result_export::prepare ( THD ,
const mem_root_deque< Item * > &  ,
Query_expression u 
)
overridevirtual

Perform preparation specific to the query expression or DML statement.

Returns
false if success, true if error

Reimplemented from Query_result.

◆ send_data()

bool Query_result_export::send_data ( THD thd,
const mem_root_deque< Item * > &  items 
)
overridevirtual

Implements Query_result.

◆ start_execution()

bool Query_result_export::start_execution ( THD )
overridevirtual

Prepare for execution of the query expression or DML statement.

Generally, this will have an implementation only for outer-most Query_block objects, such as data change statements (for preparation of the target table(s)) or dump statements (for preparation of target file).

Returns
false if success, true if error

Reimplemented from Query_result.

Member Data Documentation

◆ escape_char

int Query_result_export::escape_char
private

◆ field_sep_char

int Query_result_export::field_sep_char
private

◆ field_term_char

int Query_result_export::field_term_char
private

◆ field_term_length

size_t Query_result_export::field_term_length
private

◆ fixed_row_size

bool Query_result_export::fixed_row_size
private

◆ is_ambiguous_field_sep

bool Query_result_export::is_ambiguous_field_sep
private

◆ is_ambiguous_field_term

bool Query_result_export::is_ambiguous_field_term
private

◆ is_unsafe_field_sep

bool Query_result_export::is_unsafe_field_sep
private

◆ line_sep_char

int Query_result_export::line_sep_char
private

◆ write_cs

const CHARSET_INFO* Query_result_export::write_cs
private

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