After some help from #dbic-class (ribasushi and ilmari) - here is a
version using Class::C3::Componentised->inject_base to inject the
backcompat layer into the isa of DBIx::Class::Schema::Loader::DBI.
This way the backcompat can work for all the backends.

Cheers,
Z.

On Thu, Sep 10, 2009 at 1:55 PM, Zbigniew Lukasiak <zzb...@gmail.com> wrote:
> Hi,
>
> I am attaching some tests for the backcompat layer of the new Loader.
> I only managed to use it as a subclass of
> DBIx::Class::Schema::Loader::DBI::SQLite, I am not too familiar with
> how the Loader builds it's components and how to override
> DBIx::Class::Schema::Loader::Base.  So this needs to be fixed.
>
> To put it in other words - I don't know how the existing back compat
> layer is supposed to be used - i.e. how the end user could use it to
> make the new loader behave as the old one.  I only managed to add the
> backcompat to one of the many storage layers.
>
> The diff is against:
> http://dev.catalyst.perl.org/repos/bast/branches/DBIx-Class-Schema-Loader/back-compat
>
> --
> Zbigniew Lukasiak
> http://brudnopis.blogspot.com/
> http://perlalchemy.blogspot.com/
>



-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/

Attachment: backcompat_tests.diff.1
Description: Binary data

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to