I spoke DBIC developer ribasushi at 34th Chaos Communication Congress (34c3) in Leipzig. (Greetings from there!) What I didn't know is that DBIC in fact has resultset relationships.
Problem is there is no accessor for them because it would be so many subs. Instead you can call
I spoke DBIC developer ribasushi at 34th Chaos Communication Congress (34c3) in Leipzig. (Greetings from there!) What I didn't know is that DBIC in fact has resultset relationships.
Problem is there is no accessor for them because it would be so many subs. Instead you can call
Bonus: To optimize by replacing the current resultset with a complex WHERE-clause by a simple
WHERE id IN (...)
we can reuse this code to automatically get the identifying columns (e.g. PK columns or UNIQUE CONSTRAINT columns): https://metacpan.org/source/RIBASUSHI/DBIx-Class-0.082840/lib/DBIx/Class/ResultSet.pm#L1962-2013