diff options
author | ignace nyamagana butera <nyamsprod@gmail.com> | 2015-11-23 10:39:59 +0100 |
---|---|---|
committer | ignace nyamagana butera <nyamsprod@gmail.com> | 2015-11-23 11:22:48 +0100 |
commit | 991e3b26fef334c2a21befb00a40f4c7e8fabf8b (patch) | |
tree | b1ab1808f4a608995baddb76e1b280f9662a8f51 /test/Plugin/NullValidatorTest.php | |
parent | 69bafa6ff924fbf9effe4275d6eb16be81a853ef (diff) | |
download | csv-991e3b26fef334c2a21befb00a40f4c7e8fabf8b.zip csv-991e3b26fef334c2a21befb00a40f4c7e8fabf8b.tar.gz csv-991e3b26fef334c2a21befb00a40f4c7e8fabf8b.tar.bz2 |
Introducing Reader::fetchPairs
In order to make League\Csv works better with huge
CSV files we introduce two modes where some Reader::fetch*
methods will return either an array or an iterator. The mode
is defined for a single query and is by default reset to returning
an array.
The mode are added with the introduction of Reader::fetchPairs to
returns data in an array of key-value pairs, as an associative array
with a single entry per row.
Adding Reader::fetchPairs requires dropping support for PHP5.4 as the
method requires the use of PHP 5.5+ generators.
The fetch* method callable function are also updated to ease their usage as
prior to Reader::fetchPairs all callable had the same signature. Now the signature
depends on the fetch* method.
Diffstat (limited to 'test/Plugin/NullValidatorTest.php')
0 files changed, 0 insertions, 0 deletions