MySQL 9.1.0
Source Code Documentation
s_mysql_bulk_load_driver Struct Reference

Bulk load driver service. More...

#include <bulk_load_service.h>

Public Attributes

Bulk_loader *(* create_bulk_loader )(THD *thd, my_thread_id connection_id, const TABLE *table, Bulk_source src, const CHARSET_INFO *charset)
 Create bulk loader. More...
 
void(* set_string )(Bulk_loader *loader, Bulk_string type, std::string value)
 Set string attribute for loading data. More...
 
void(* set_char )(Bulk_loader *loader, Bulk_char type, unsigned char value)
 Set single byte character attribute for loading data. More...
 
void(* set_size )(Bulk_loader *loader, Bulk_size type, size_t value)
 Set size attribute for loading data. More...
 
void(* set_condition )(Bulk_loader *loader, Bulk_condition type, bool value)
 Set boolean condition attribute for loading data. More...
 
void(* set_compression_algorithm )(Bulk_loader *loader, Bulk_compression_algorithm algorithm)
 Set boolean condition attribute for loading data. More...
 
bool(* load )(Bulk_loader *loader, size_t &affected_rows)
 Load data from CSV files. More...
 
void(* drop_bulk_loader )(THD *thd, Bulk_loader *loader)
 Drop bulk loader. More...
 

Detailed Description

Bulk load driver service.

Member Data Documentation

◆ create_bulk_loader

Bulk_loader *(* s_mysql_bulk_load_driver::create_bulk_loader) (THD *thd, my_thread_id connection_id, const TABLE *table, Bulk_source src, const CHARSET_INFO *charset)

Create bulk loader.

Parameters
[in]thdmysql THD
[in]tablemysql TABLE object
[in]srcbulk loader source
[in]charsetsource data character set
Returns
bulk loader object, opaque type.

◆ drop_bulk_loader

void(* s_mysql_bulk_load_driver::drop_bulk_loader) (THD *thd, Bulk_loader *loader)

Drop bulk loader.

Parameters
[in,out]thdmysql THD
[in,out]loaderloader object to drop

◆ load

bool(* s_mysql_bulk_load_driver::load) (Bulk_loader *loader, size_t &affected_rows)

Load data from CSV files.

Parameters
[in,out]loaderbulk loader
Returns
true if successful.

◆ set_char

void(* s_mysql_bulk_load_driver::set_char) (Bulk_loader *loader, Bulk_char type, unsigned char value)

Set single byte character attribute for loading data.

Parameters
[in,out]loaderbulk loader
[in]typeattribute type
[in]valueattribute value

◆ set_compression_algorithm

void(* s_mysql_bulk_load_driver::set_compression_algorithm) (Bulk_loader *loader, Bulk_compression_algorithm algorithm)

Set boolean condition attribute for loading data.

Parameters
[in,out]loaderbulk loader
[in]algorithmthe compression algorithm used

◆ set_condition

void(* s_mysql_bulk_load_driver::set_condition) (Bulk_loader *loader, Bulk_condition type, bool value)

Set boolean condition attribute for loading data.

Parameters
[in,out]loaderbulk loader
[in]typeattribute type
[in]valueattribute value

◆ set_size

void(* s_mysql_bulk_load_driver::set_size) (Bulk_loader *loader, Bulk_size type, size_t value)

Set size attribute for loading data.

Parameters
[in,out]loaderbulk loader
[in]typeattribute type
[in]valueattribute value

◆ set_string

void(* s_mysql_bulk_load_driver::set_string) (Bulk_loader *loader, Bulk_string type, std::string value)

Set string attribute for loading data.

Parameters
[in,out]loaderbulk loader
[in]typeattribute type
[in]valueattribute value

The documentation for this struct was generated from the following file: