Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: dbicdump and relationships

by Anonymous Monk
on Jan 14, 2013 at 14:33 UTC ( #1013223=note: print w/ replies, xml ) Need Help??


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


Comment on Re^3: dbicdump and relationships
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013223]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2014-12-22 12:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (116 votes), past polls