[Dbix-class] How to alter table via DBIC?
Chris Cole
chris at compbio.dundee.ac.uk
Wed May 12 08:07:12 GMT 2010
On Tue, 11 May 2010 21:52:47 +0100, Rob Kinyon <rob.kinyon at gmail.com>
wrote:
> 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.
If you'd put a caveat, maybe I would have looked harder. I did search for
the docs, but couldn't find them.
> 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 );
Thanks.
More information about the DBIx-Class
mailing list