in reply to Re^2: RFC: Array::GroupBy (DBD::Sponge)
in thread RFC: Array::GroupBy

You're right, my bad. Despite allegedly supporting SQL::Statement::Syntax, in fact DBD::Sponge essentially ignores the statement and does a plain ol' SELECT *.... and the only use I can envision for that is as a bridge between your perl data and some black-box module which requires a statement handle.

The documentation of DBD::Sponge's prepare() is pretty unclear on this issue:

The $statement here is an arbitrary statement or name you want to provide as identity of your data. If you're using DBI::Profile it will appear in the profile data.

Generally it's expected that you are preparing a statement handle as if a select statement happened.
huh?

Anyway, sorry for the red herring.

Update: I checked into a couple of DBD modules which allow to access in-memory perl data structures as sources for DBIDBD::AnyData and DBD::RAM (both, like SQL::Statement and other parts of the DBIverse, by jZed). Alas, neither supports GROUP BY!

Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.

Replies are listed 'Best First'.
Re^4: RFC: Array::GroupBy (DBD::Sponge)
by Porculus (Hermit) on Jan 09, 2009 at 23:45 UTC

    It wouldn't have been a perfect solution anyway; SQL::Statement's GROUP BY implementation is incomplete.

    (Looks like the module's being worked on again now, so I've reported the bug once more...)