I can't get it to work :-/
It seems to run fine but then I have no output or anything? is it supposed to ouput to stdout? or a file?
This is the first time I use Rose::DB or any ORM for that matter so pardon me if i am being clueless, because.. well, I am.
here's my code in case it helps anyone tell me what I am doing wrong....
I'm excited to try this out, I am just still kind of new at this ORM thing. I know perl pretty well though.
----------------------
#! /usr/bin/perl -w
use strict;
use warnings;
use diagnostics;
use Rose::DB::Object::Loader;
use PaperKiller::DB;
my $loader = Rose::DB::Object::Loader->new(db =>PaperKiller::DB->new('main'),
class_prefix => 'PaperKiller::DB');
$loader->make_classes;
--------------------------------
#! /usr/bin/perl -w
use strict;
use warnings;
use diagnostics;
package PaperKiller::DB;
use base qw(Rose::DB);
PaperKiller::DB->register_db(
domain => 'cantella',
type => 'main',
driver => 'mysql',
database => 'pk',
host => '10.0.2.10',
username => 'myusername',
password => 'mysecretpassowrd',
server_time_zone => 'UTC',
);
PaperKiller::DB->default_domain('cantella');
PaperKiller::DB->default_type('main');
1;
- [RDBO] Rose::DB::Object::Loader John Siracusa
- [RDBO] Rose::DB::Object::Loader Guillermo Roditi
- Re: [RDBO] Rose::DB::Object::Loader John Siracusa