in reply to Class::DBI example
in thread Save MP3 Tag's to Database with SPOPS
package Song;
use base qw(Class::DBI::mysql);
__PACKAGE__->set_db( 'Main', 'dbi:mysql', 'username', 'password' );
__PACKAGE__->set_up_table('Song');
package main;
...
No need to declare your columns, as it will go ask the database for them. I keep meaning to find out how to do this for other databases, and roll them in ...
Tony
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Class::DBI example
by lachoy (Parson) on Feb 11, 2002 at 12:56 UTC |