http://www.perlmonks.org?node_id=1013223


in reply to Re^2: dbicdump and relationships
in thread dbicdump and relationships

Try sqlt -f MySQL -t DBIx::Class::File < schema.sql > fudge.pm

Replies are listed 'Best First'.
Re^4: dbicdump and relationships
by Anonymous Monk on Jan 14, 2013 at 14:36 UTC
    $ grep -E "belongs_to|has_many" 2 __PACKAGE__->belongs_to('density', 'RPG::Traveller::DB::Schema::densit +y'); __PACKAGE__->belongs_to('sector', 'RPG::Traveller::DB::Schema::sector' +); __PACKAGE__->has_many('get_subsector', 'RPG::Traveller::DB::Schema::su +bsector', 'sector'); __PACKAGE__->has_many('get_subsector', 'RPG::Traveller::DB::Schema::su +bsector', 'density');
Re^4: dbicdump and relationships
by blue_cowdawg (Monsignor) on Jan 14, 2013 at 14:51 UTC

    That works nicely. I'd still like to see dbicdump work properly though, but it is nice to have a backup plan. :-)


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg