Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: RFC: Array::GroupBy (DBD::Sponge)

by jdporter (Paladin)
on Jan 06, 2009 at 22:07 UTC ( [id://734507]=note: print w/replies, xml ) Need Help??


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...)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://734507]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found