pankaj_it09 has asked for the wisdom of the Perl Monks concerning the following question:
package Database; use base 'DBIx::ActiveRecord::Model'; DBIx::ActiveRecord::Model->table('sca_lt'); # table name is required DBIx::ActiveRecord::Model->columns(qw/pid fp fn/); # required DBIx::ActiveRecord::Model->primary_keys(qw/pid/); # required my $data_source = 'dbi:SQLite:sca_lt'; my $username = 'user'; my $auth = 'pwd'; DBIx::ActiveRecord->connect($data_source, $username, $auth, \%attr); my $m = Database->new(); my $list = $m->all; print $list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBIx::ActiveRecord usage
by choroba (Cardinal) on May 19, 2014 at 16:06 UTC | |
by pankaj_it09 (Scribe) on May 20, 2014 at 09:18 UTC | |
by choroba (Cardinal) on May 20, 2014 at 09:44 UTC | |
by pankaj_it09 (Scribe) on May 20, 2014 at 10:51 UTC | |
by Anonymous Monk on May 20, 2014 at 10:55 UTC | |
| |
by pankaj_it09 (Scribe) on May 20, 2014 at 10:54 UTC | |
by pankaj_it09 (Scribe) on May 20, 2014 at 11:03 UTC |