Changes for version v3.6.1 - 2026-11-24

  • result_original is Ekorn::Pipeline's own, and a stage reading it is 11 to 13% quicker; a value given twice for a placeholder croaks, rather than one being chosen at random.
  • It ships roadmap 2026-0046: the statement's source gives Ekorn::Pipeline the row as its original, which Ekorn carries through chains, so DBIx::Squirrel::Context's result_original is Ekorn::Pipeline::Context's own, as result_number is; and fixes from a review of what changed since v3.3.2. Requires Ekorn::Pipeline >= v0.3.14, < v0.4.0.
  • result_original is Ekorn::Pipeline::Context's own sub, and gives what it gave: the fetched row wherever a statement is read, chains included, undef in a flush, and the value given in a run reading no statement. A stage reading it each row is 238 to 259 ns a row quicker, 11 to 13%, on Perl 5.36 and 5.44, reading 297,848 rows (roadmap 2026-0046).
  • Requires Ekorn::Pipeline v0.3.14 or later, below v0.4.0: v0.3.13 added a source's original part, and v0.3.14 hands a sink of many's result straight to all, so iterate(..., keep_all) is 15 to 17% quicker, costing what a stage and all do.
  • A value given for a named placeholder twice, written with and without its sigil, as :id and id, croaks: "Expected one value for each placeholder (two for id)". It took one of the two as a hash happened to order them, wherever values are given by name: in pairs, in a hash given to execute, or in a hash row for execute_for_fetch.
  • A row for execute_for_fetch, or from ArrayTupleFetch, that's neither an array nor, for named placeholders, a hash croaks: "Expected a row of values: an array, or a hash for named placeholders". A hash for numbered placeholders said "Expected 2 bind values, not 1", and an object, Perl's own "Not an ARRAY reference". The reference says the rows before such a row have been executed, so a load wants a transaction.
  • The user guide's timings are measured again: a stage now costs about a microsecond a row, where it said under two, and iterate(..., keep_all) 0.429 seconds over 297,848 rows, not 0.533.
  • DBIx::Squirrel::db's POD lists the ekorn_slice error.

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