[Catalyst] Migration from Class::DBI to DBIx::Class (with CDBICompat)

Matt S Trout dbix-class at trout.me.uk
Tue Jan 10 20:24:09 CET 2006


On Tue, Jan 10, 2006 at 10:24:43AM +0100, Michele Beltrame wrote:
> Hello!
> 
> >It's relatively trivial if you have your own Class::DBI classes - and I
> >don't use Loader so migration worked fine for our applications.
> 
> Problem is I have some set_sql() calls, which don't seem to exist in 
> DBIx::Class, so I'll have to migrate them somehow.

You should be able to load just the specific CDBICompat module, or better
persuade DBIx::Class to do the query itself. I haven't seen the set_sql yet
I couldn't persuade ResultSet to build for me :)

> >It's not doing badly for a project whose first release was in August :)
> 
> I know, it's an awesome project. It's probably just me too lazy (or with 
> a too few time, actually). ;-)

If Class::DBI is working for you then by all means stick with it - I'm not
going to take "it already works and I can't justify the time to switch it",
we still have stuff in that category ourselves.

-- 
     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 Catalyst mailing list