Closed norberttech closed 2 months ago
Example:
<?php use function Flow\ETL\Adapter\JSON\to_json; use function Flow\ETL\DSL\df; use function Flow\ETL\DSL\from_array; use function Flow\Filesystem\DSL\path_stdout; require __DIR__ . '/../../../vendor/autoload.php'; df() ->read(from_array([ ['id' => 1, 'name' => 'Product 1', 'aw_product_id' => 100], ['id' => 2, 'name' => 'Product 2', 'aw_product_id' => 200], ['id' => 3, 'name' => 'Product 3', 'aw_product_id' => 300], ])) ->batchSize(1) ->write(to_json(path_stdout())->withFlags(JSON_PRETTY_PRINT)) ->run();
Terminal output:
[{ "id": 1, "name": "Product 1", "aw_product_id": 100 },{ "id": 2, "name": "Product 2", "aw_product_id": 200 },{ "id": 3, "name": "Product 3", "aw_product_id": 300 }]
Results of the benchmarks from this PR are compared with the results from 1.x branch.
Change Log
Added
Fixed
Changed
Removed
Deprecated
Security
Description
Example:
Terminal output: