Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Updating/inserting Binary data using DBIx::Classby rafl (Friar) |
on Aug 23, 2006 at 18:54 UTC ( [id://569169]=note: print w/replies, xml ) | Need Help?? |
I know this solution is quite hacky, but I don't really have another idea right now. Try to add the following accessor to your resultsource class
I know that this piece of code somehow undermines the principles of DBIx::Class because the resultsource already knows what the table name is and how the primary_key is called. You may be able to change the hard-coded SQL queries to something smarter or you will probably also be able to use SQL::Abstract, which DBIx::Class uses internal as well, to build that query, but I didn't bother with that.
Also note that the code is completely untested. Cheers, Flo
In Section
Seekers of Perl Wisdom
|
|