Skip Menu |

This queue is for tickets about the Test-Fixture-DBIC-Schema CPAN distribution.

Report information
The Basics
Id: 35579
Status: resolved
Priority: 0/
Queue: Test-Fixture-DBIC-Schema

People
Owner: Nobody in particular
Requestors: mst [...] shadowcat.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Needs to use DBIx::Class::Fixture
Date: Fri, 2 May 2008 10:07:56 +0100
To: bug-test-fixture-dbic-schema [...] rt.cpan.org
From: Matt S Trout <mst [...] shadowcat.co.uk>
Test::Fixture::DBIC::Schema should ideally provide a mode to use DBIx::Class::Fixture in order to integrate with standard DBIC development; other tools created by the DBIC community will be based on it so you'll get improved utility out of it, and you currently have nothing close to the dumping code so it'll be easier to steal than write :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
This distribution was removed from CPAN.
Subject: Re: [rt.cpan.org #35579] Needs to use DBIx::Class::Fixture
Date: Mon, 16 Aug 2010 16:39:32 +0100
To: Tokuhiro Matsuno via RT <bug-Test-Fixture-DBIC-Schema [...] rt.cpan.org>
From: Matt S Trout <mst [...] shadowcat.co.uk>
On Sun, Aug 15, 2010 at 10:13:45PM -0400, Tokuhiro Matsuno via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=35579 > > > This distribution was removed from CPAN.
And now it's back, and the code still needs rewriting. Especially given I just cracked it open and for my $row ( @{ $fixture } ) { $schema->resultset( $row->{schema} )->create( $row->{data} ); $result->{ $row->{name} } = $schema->resultset( $row->{schema} )->find( $row->{data} ); } could go wrong for all sorts of fascinating reasons (e.g. auto-inc ID but otherwise the same data). DBIx::Class::Fixtures should already do what you need and if it doesn't I'm sure Luke Saunders would be happy to discuss how to extend it. -- Matt S Trout - Shadowcat Systems - Perl consulting with a commit bit and a clue http://shadowcat.co.uk/blog/matt-s-trout/ http://twitter.com/shadowcat_mst/ Email me now on mst (at) shadowcat.co.uk and let's chat about how our Catalyst commercial support, training and consultancy packages could help your team.
On 2010-8月-16 月 11:39:44, mst@shadowcat.co.uk wrote: Show quoted text
> On Sun, Aug 15, 2010 at 10:13:45PM -0400, Tokuhiro Matsuno via RT > wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=35579 > > > > > This distribution was removed from CPAN.
> > And now it's back, and the code still needs rewriting. > > Especially given I just cracked it open and > > for my $row ( @{ $fixture } ) { > $schema->resultset( $row->{schema} )->create( $row->{data} ); > $result->{ $row->{name} } = $schema->resultset( $row->{schema} > )->find( $row->{data} ); > } > > could go wrong for all sorts of fascinating reasons (e.g. auto-inc ID > but > otherwise the same data). > > DBIx::Class::Fixtures should already do what you need and if it > doesn't > I'm sure Luke Saunders would be happy to discuss how to extend it. >