[Dbix-class] Setting storage for a schema in 0.05

Matt S Trout dbix-class at trout.me.uk
Thu Feb 2 23:26:43 CET 2006


On Thu, Feb 02, 2006 at 08:23:53AM -0800, Alan Humphrey wrote:
> I need to be able to set the storage for my schema.  The technique I used
> previously (see below) is broken as of 0.05.  What is the new preferred way
> to do this?

Call

$schema->storage_type('::Foo') (to get DBIx::Class::Storage::Foo)

or

$schema->storage_type('Foo::Bar') (to get a Foo::Bar storage object)

before you call ->connect or ->connection on the schema.

-- 
     Matt S Trout       Offering custom development, consultancy and support
  Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Dbix-class mailing list