[Dbix-class] How to alter table via DBIC?

Rob Kinyon rob.kinyon at gmail.com
Tue May 11 20:52:47 GMT 2010


On Tue, May 11, 2010 at 16:01, Chris Cole <chris at compbio.dundee.ac.uk> wrote:
> Gives this error:
> Warning - transaction failed and rolling back:
> DBIx::Class::Schema::txn_do(): Can't locate object method "do" via package
> "DBIx::Class::Storage::DBI::Oracle::Generic" at
> /homes/ccole/projects/workspace/NGSdb/load_drs_data.pl line 176.
>
> Any ideas why $dbh-do() is failing?

Maybe reading the documentation instead of relying purely on my advice
would be a good plan.

http://search.cpan.org/~frew/DBIx-Class-0.08121/lib/DBIx/Class/Storage/DBI.pm#dbh_do

$storage->dbh_do( sub {
    my ($storage, $dbh, @args) = @_;
    ....
}, @args );

Rob



More information about the DBIx-Class mailing list