Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 581 Bytes

MemoryLoader.md

File metadata and controls

27 lines (18 loc) · 581 Bytes

MemoryLoader

Loads data into an in-memory collection.

/** @var \Wizaplace\Etl\Loaders\MemoryLoader $loader */
$etl->load($loader, '', $options);

// Then retrieve data using the index
$loader->get('index_for_row_23');

Options

Index (required)

The name of Row column to uses as in-memory map index.

Type Default value
string null

For example, a row extracted from a CSV with a column named Identifier would be loaded with this option set:

$options = [MemoryLoader::INDEX => 'Identifier'];