Changes for version v4.0.0 - 2026-11-25

  • Version 4: pipe gives what a pipeline gives, as in Ekorn::Pipeline v0.4.0, now required; and a quality release, from a review.
  • It ships roadmap 2026-0048, from a task of Ekorn-Pipeline's, and 2026-0049, the fixes from a review of the code, tests and docs. Requires Ekorn::Pipeline >= v0.4.0, < v0.5.0.
  • pipe, on a database or statement handle, gives in scalar context what a pipeline of the same stages gives: how many results, or a sink's result, a list sink's as an array reference, and 1 with no stages. It gave the first result, or undef. For one value, read it in list context, my($first) = $dbh->pipe(...), or end with keep_first (roadmap 2026-0048).
  • Requires Ekorn::Pipeline v0.4.0 or later, below v0.5.0, for pipe; v0.4.0 carries v0.3.16's fix, which passes a statement's row to a pipeline reading a | chain made from its iterator, as result_original (roadmap 2026-0048).
  • Every module has a $VERSION, the distribution's, so a caller can ask for one, as use DBIx::Squirrel::Tooling v4.0.0; a test keeps them in step (roadmap 2026-0049).
  • A select method whose values fail to bind, without RaiseError, returns undef where it returns a reference, as when its statement fails to prepare, not an empty list (roadmap 2026-0049).
  • The reference has "Upgrading from 3.x", for pipe, and the README and DBIx::Squirrel's POD say this is version 4 (roadmap 2026-0049).
  • The iterator's POD and the reference give the measured figure for a batch bigger than 64 rows: at most 7% faster, for narrow rows (roadmap 2026-0049).
  • Tests: a pipeline of your own reading a | chain made from an iterator gets the row from result_original, as Context's POD promises; prepare_cached keeps what was studied after a subclass's prepare that skips DBIx::Squirrel's; the README's examples compile (roadmap 2026-0049).
  • Code: an unreachable return in the placeholders' values goes; comments say "re-export", not "facade", give one figure for a signature's cost, and are rewrapped where edits left them short; one blank line above a commented sub, in tests and scripts too (roadmap 2026-0049).

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