You can pass loader_class in the connect_info, example:
make_schema_at(
'My::Schema',
{ debug => 1 },
[ 'dbi:Pg:dbname=foo', 'user', 'pass', { loader_class => 'MyLoader' } ],
);
I made the docs more explicit on that point.
On Thu, Mar 25, 2010 at 06:17:50AM -0400, Mark Zealey via RT wrote:
Show quoted text> Thu Mar 25 06:17:50 2010: Request 55929 was acted upon.
> Transaction: Ticket created by mzealey
> Queue: DBIx-Class-Schema-Loader
> Subject: make_schema_at inadiquately parses \%loader_options
> Broken in: 0.04999_10, 0.05003
> Severity: (no value)
> Owner: Nobody
> Requestors: mark.zealey@webfusion.com
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=55929 >
>
>
> Not 100% sure why there is this discrepancy, however in connection(),
> you parse the hash and pull out loader_class, loader_options etc.
> However, make_schema_at() only supports the loader_options part. Perhaps
> you could change make_schema_at() to do the same parsing as connection()
> (although I'm not sure if you could make that backwards-compatible) or
> create a new function so that I can call something like make_schema_at()
> but including other settings which don't live in loader_options such as
> loader_class.
>
> Thanks,
>
> Mark