Re: [CDBI] problem with loadinng data in a db2 database using class-dbi
[prev]
[thread]
[next]
[Date index for 2005/11/01]
On Mon, Oct 31, 2005 at 06:21:50PM -0700, noumene@xxxx.xxxxxxxx.xx wrote:
> Hi,
>
> I am trying to load data in my db2 database using class-dbi in a
> perl script.
> I am blocked on the dbi set_up_table function called in my script:
> Chado::Tableinfo->set_up_table('tableinfo');
Why not simply define your columns etc. the normal way?
The set_up_table class methods defined by the db-specific subclasses are
a handy shortcut sometimes, but they are only a shortcut and they don't
always work.
package Foo;
__PACKAGE__->table('foo');
__PACKAGE__->columns(All => qw/list of column names/);
is the standard Class::DBI way to do it and rather more reliable.
--
Matt S Trout Specialists in Perl consulting, web development, and
Technical Director UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi
|
|
Re: [CDBI] problem with loadinng data in a db2 database using class-dbi
Matt S Trout 17:00 on 01 Nov 2005
|