Changes for version v3.6.0 - 2026-11-24
- Iterators with stages are 10 to 17% quicker, and result_number works in any run.
- It ships roadmap 2026-0032: Ekorn::Pipeline now counts every run's results, so DBIx::Squirrel::Context builds on its count, and the stage each iterator added to count its own is gone. Requires Ekorn::Pipeline >= v0.3.12, < v0.4.0.
- An iterator with stages no longer adds one of its own to count its results, which cost 200 to 260 ns a row: reading 297,848 rows through one stage, next and all are 197 to 274 ns a row quicker, 10 to 17%, on Perl 5.36 and 5.44 (roadmap 2026-0032).
- result_number works in any run, each counting its own: in a chain made with |, and in a pipeline of your own, where it was undef. A sink's step sees the number of the value it's given, not the next, and an end sees undef.
- result_original, in a run reading no statement, where it was undef, gives the value the run's source gave, or that was pushed, as Ekorn::Pipeline::Context's does.
- Requires Ekorn::Pipeline v0.3.12 or later, below v0.4.0: v0.3.11 added Ekorn::Pipeline::Context, and v0.3.12 gave its functions the empty prototype ours have, so result_number is Ekorn's own.
Documentation
DBIx::Squirrel user guide
DBIx::Squirrel reference
Modules
DBI, minus the boilerplate, plus a pipeline
what a stage can ask about the result it's making
report the DBI's errors at the caller's line
a stage made afresh for each run, told when the values run out
an iterator over a statement's results
find the placeholders in a statement, and match values to them
the base class of the rows a result set hands out
an iterator handing out rows as objects
stages gathering values: batch and collect
stages taking or dropping values: take, drop, take_first, take_last, take_single, take_while, drop_while, take_if and drop_if
stages reshaping rows: pluck and as_hash
stages run for their side effects: peek, count_into, dump_to and tee
end a DBIx::Squirrel pipeline early
a function for each database, and each statement
DBIx::Squirrel's stages, sinks and words, from one module
helpers shared by DBIx::Squirrel's modules
DBIx::Squirrel's database handle class
DBIx::Squirrel's statement handle class