Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: DBIC: How to dump schema with underscores for table names instead of camel case?

by nysus (Parson)
on Feb 10, 2017 at 07:17 UTC ( [id://1181631]=note: print w/replies, xml ) Need Help??


in reply to DBIC: How to dump schema with underscores for table names instead of camel case?

Bam! Got it. Finally.

make_schema_at ( 'Schema', { debug => 1, dump_directory => '.', moniker_map => \&_get_moniker, }, [$self->dsn, $self->db_user, $self->db_pass], ); sub _get_moniker { return shift; #returns original table name with no modifications }

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks

  • Comment on Re: DBIC: How to dump schema with underscores for table names instead of camel case?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 12:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found