[Dbix-class] How to retrieve table name from component?

Alex Povolotsky tarkhil at over.ru
Fri Jan 22 07:11:34 GMT 2010


Hello!

I'm working on a bit weird system (cannot change protocol right now, alas).

I have to convert DBIx::Class::Row object into INSERT clause, skipping 
NULL fields.

Everything is quite simple, except proper retrieval of table name.

lc($self->{_source_handle}->{source_moniker})

works, but I'm afraid of it. Maybe something more clean, not worming int 
internal structures?

Alex.




More information about the DBIx-Class mailing list