Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: mark.zealey [...] pipex.net
Cc:
AdminCc:

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



Subject: make_schema_at only accepts loader_options
I wanted to pass a custom loader_class into make_schema_at but this is not possible. I'm not sure why you didn't just use ->connection(@$connect_info, $opts) in make_schema_at. This could be hard to do well and maintain backwards compatibility though; perhaps change the code to something like: my $opts_to_pass = exists $opts->{loader_options} ? $opts : { loader_options => $opts }; $target->connection(@$connect_info, $opts_to_pass); This would allow a lot more flexibility; as it is I've had to basically copy make_schema_at into my program and use this method. Thanks, Mark
loader_class can be passed in the last hash of the connect_info to make_schema_at (relevant docs updated in 0.06000 .)