Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: DBIx::Class and "complex" joins (was Re^4: DB: what kind of relationship?)

by bliako (Monsignor)
on May 04, 2020 at 20:02 UTC ( [id://11116451]=note: print w/replies, xml ) Need Help??


in reply to DBIx::Class and "complex" joins (was Re^4: DB: what kind of relationship?)
in thread DB: what kind of relationship?

Peripheral to the substance provided by 1nickt and tobyink, I will leave here what I learned trying to find alternatives for the shelling-out from 1nickt's excellent demo.

I have tested 2 modules for SQL'ing from a file: DBIx::RunSQL (for both files and strings and quite recent too!) and DBIx::MultiStatementDo for SQL strings. And they work great. We are talking about multiple SQL statements spanning over many lines, etc. So using either of those modules will avoid shelling out for mysql. Added bonus & most importantly both are DB-vendor agnostic: just supply a DSN.

Also, I have tested replacing shelling out dbicdump with DBIx::Class::Schema::Loader's make_schema_at() and that works fine too.

thank you again 1nickt and tobyink, bw bliako

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-24 02:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found