Changes for version v3.5.0 - 2026-11-24
- execute_array and execute_for_fetch work for every placeholder style, CSV files go in and out, the examples show stages doing what SQL can't, and the user guide says when to use them.
- It ships roadmap 2026-0037: loading many rows at once, which worked only for ? placeholders, works for numbered and named ones, used once or more, with rows as hashes by name; 2026-0044, Tooling's :csv, with a recipe loading a CSV file into a table and an export to one; 2026-0045, a stop after a tee no longer losing what its branch holds; and 2026-0036, an appraisal of Ekorn's feed and tee. Requires Ekorn::Pipeline >= v0.3.10, < v0.4.0, and recommends Text::CSV.
- execute_array, execute_for_fetch and bind_param_array work for numbered and named placeholders, used once or more, as plain DBI's work for ?, on any driver (roadmap 2026-0037). A row's values come in placeholder order: by number, or as each name first appears, so :id, :name, :id takes two values a row. A row for named placeholders can be a hash, keyed by name. bind_param_array takes a placeholder's name. A statement with a list placeholder croaks: "Expected no list placeholder in a statement for rows of values".
- The user guide's loader writes hashes with execute_for_fetch and named placeholders.
- DBIx::Squirrel::Tooling exports from_csv and to_csv, from Ekorn::Pipeline::CSV, in a new tag, :csv, and in :all, as Ekorn::Pipeline::Tooling does (roadmap 2026-0044).
- Recommends Text::CSV, which from_csv and to_csv need, and load only when one is called.
- The user guide has a recipe, "Load a CSV file into a table", and writes a query to a CSV file with a header in "Write the results to a file"; the README's pitch says so; and the reference says what header to give to_csv after as_hash with column names.
- Requires Ekorn::Pipeline v0.3.10 or later, below v0.4.0, the first with Ekorn::Pipeline::CSV, and with a tee whose branch is closed when a stage after it stops the run, so what the branch holds, such as a part-filled batch, is flushed rather than dropped. The user guide and the reference say so, and no longer say to put a stage that stops the run before the tee (roadmap 2026-0045, 2026-0036).
- The README, the user guide and the reference no longer filter, limit or count in stages what a WHERE, LIMIT or COUNT would. Their examples test data the database doesn't have, keep running totals, resume where a run stopped, and make slugs and words, and say that a test the SQL could do belongs there, but in a stage while debugging a query you'd rather not touch.
- The user guide answers "When should I use it, and when not?": the DBI's methods for a simple query used once, SQL for what the database can do, stages for a query whose callers vary, and a list or a hash where rows don't flow. The README points to it.
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