MySQL 8.3.0
Source Code Documentation
bulk_load_service.h File Reference

This service provides interface for loading data in bulk from CSV files. More...

#include <mysql/components/service.h>
#include <string>

Go to the source code of this file.

Classes

struct  s_mysql_bulk_load_driver
 Bulk load driver service. More...
 

Typedefs

using Bulk_loader = void
 
typedef struct s_mysql_bulk_load_driver mysql_service_bulk_load_driver_t
 Bulk load driver service. More...
 

Enumerations

enum class  Bulk_source { LOCAL , OCI , S3 }
 Bulk loader source. More...
 
enum class  Bulk_string {
  SCHEMA_NAME , TABLE_NAME , FILE_PREFIX , COLUMN_TERM ,
  ROW_TERM
}
 Bulk loader string attributes. More...
 
enum class  Bulk_condition { ORDERED_DATA , OPTIONAL_ENCLOSE }
 Bulk loader boolean attributes. More...
 
enum class  Bulk_size {
  COUNT_FILES , COUNT_ROW_SKIP , COUNT_COLUMNS , CONCURRENCY ,
  MEMORY
}
 Bulk loader size attributes. More...
 
enum class  Bulk_char { ESCAPE_CHAR , ENCLOSE_CHAR }
 Bulk loader single byte attributes. More...
 

Detailed Description

This service provides interface for loading data in bulk from CSV files.

Typedef Documentation

◆ Bulk_loader

using Bulk_loader = void

◆ mysql_service_bulk_load_driver_t

Bulk load driver service.

Enumeration Type Documentation

◆ Bulk_char

enum class Bulk_char
strong

Bulk loader single byte attributes.

Enumerator
ESCAPE_CHAR 

Escape character.

ENCLOSE_CHAR 

Column enclosing character.

◆ Bulk_condition

enum class Bulk_condition
strong

Bulk loader boolean attributes.

Enumerator
ORDERED_DATA 

The algorithm used is different based on whether the data is in sorted primary key order.

This option tells whether to expect sorted input.

OPTIONAL_ENCLOSE 

If enclosing is optional.

◆ Bulk_size

enum class Bulk_size
strong

Bulk loader size attributes.

Enumerator
COUNT_FILES 

Number of input files.

COUNT_ROW_SKIP 

Number of rows to skip.

COUNT_COLUMNS 

Number of columns in the table.

CONCURRENCY 

Number of concurrent loaders to use,.

MEMORY 

Total memory size to use for LOAD in bytes.

◆ Bulk_source

enum class Bulk_source
strong

Bulk loader source.

Enumerator
LOCAL 

Local file system.

OCI 

OCI object store.

S3 

Amazon S3.

◆ Bulk_string

enum class Bulk_string
strong

Bulk loader string attributes.

Enumerator
SCHEMA_NAME 

Schema name.

TABLE_NAME 
FILE_PREFIX 
COLUMN_TERM 

Column terminator.

ROW_TERM 

Row terminator.