Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-Loader CPAN distribution.

Report information
The Basics
Id: 55929
Status: resolved
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: mark.zealey [...] webfusion.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.04999_10
  • 0.05003
Fixed in: (no value)



Subject: make_schema_at inadiquately parses \%loader_options
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
Subject: Re: [rt.cpan.org #55929] make_schema_at inadiquately parses \%loader_options
Date: Fri, 26 Mar 2010 15:06:48 -0400
To: Mark Zealey via RT <bug-DBIx-Class-Schema-Loader [...] rt.cpan.org>
From: Rafael Kitover <rkitover [...] cpan.org>
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
Updated documentation in 0.06000