[Dbix-class] How do I make global attribute for schema?

2018-06-19 Thread Alex Povolotsky
Hello Using some web framework, like Mojolicious, I often need to pass, say, $app->log into DBIx::Class-related classes. What is the recommended way to add extra attribute for schema? DBIx::Class::Schema by itself does not use Moose, is it safe to add Moose to my Schema class? Alex _

Re: [Dbix-class] How do I make global attribute for schema?

2018-06-19 Thread Thomas Klausner
Hi! On Tue, Jun 19, 2018 at 12:12:20PM +0300, Alex Povolotsky wrote: > Using some web framework, like Mojolicious, I often need to pass, say, > $app->log into DBIx::Class-related classes. Don't do that, use Log::Any! > What is the recommended way to add extra attribute for schema? > DBIx::Clas