summaryrefslogtreecommitdiffstats
path: root/test/Plugin/NullValidatorTest.php
diff options
context:
space:
mode:
authorignace nyamagana butera <nyamsprod@gmail.com>2015-11-23 10:39:59 +0100
committerignace nyamagana butera <nyamsprod@gmail.com>2015-11-23 11:22:48 +0100
commit991e3b26fef334c2a21befb00a40f4c7e8fabf8b (patch)
treeb1ab1808f4a608995baddb76e1b280f9662a8f51 /test/Plugin/NullValidatorTest.php
parent69bafa6ff924fbf9effe4275d6eb16be81a853ef (diff)
downloadcsv-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