final class BulkOptions
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

The trailing options of a bulk LOAD DATA: PARALLEL = n, MEMORY = size and ALGORITHM = BULK.

They belong to the bulk load of the HeatWave grammars: ALGORITHM = BULK since 8.0.30, PARALLEL and MEMORY since 8.2. Source: https://dev.mysql.com/doc/heatwave-aws/en/mys-hw-aws-bulk-ingest.html.

Reading the options of a bulk loaddoctest
$load = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("LOAD DATA INFILE 'f' INTO TABLE t PARALLEL = 4 ALGORITHM = BULK");
    [$load->statement->bulk->parallel->text, $load->statement->bulk->bulk] // => ['4', true]

Properties§

public Numeral|null $parallel = null
public ByteSize|null $memory = null
public bool $bulk = false

Methods§

public function __construct(
    public Numeral|null $parallel = null,
    public ByteSize|null $memory = null,
    public bool $bulk = false,
)

Parameters

$parallelNumeral|nullThe number of threads
$memoryByteSize|nullThe memory the load may use
$bulkboolWhether ALGORITHM = BULK is written
Calls 1
public function render(Output $out): void

Writes the options.

Parameters

$outOutput
Calls 1

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 1
Type declarations 2