[Dbix-class] Migration from Class::DBI: Delete all table entries?

Steven Mackenzie dbix at aptile.co.uk
Tue Jun 27 18:39:50 CEST 2006


In some Class::DBI code, I have this in my table base class:

__PACKAGE__->set_sql("delete_all", <<"");
DELETE FROM __TABLE__ WHERE 1=1

Is there a sensible way to acheive the same thing with DBIx::Class table
classes?

Also, is it safe/recommended to borrow the DB connection from a
DBIxC::Schema or table row instance?

TIA,
Steven



More information about the Dbix-class mailing list