nysus has asked for the wisdom of the Perl Monks concerning the following question:
I'm kicking the tires of DBIC. One thing that annoys me is that it uses camel case for table names. I tried to fix this by setting the 'naming' property to 'preserve' like so:
make_schema_at ( 'Schema', { debug => 1, dump_directory => '.', naming => { ALL => 'preserve' }, really_erase_my_files => 1, }, [$self->dsn, $self->db_user, $self->db_pass], );
No dice. How do I do it? Documentation here.
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
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 | |
|
Re: DBIx: How to dump schema with underscores for table names instead of camel case?
by Marshall (Canon) on Feb 09, 2017 at 18:37 UTC | |
|
Re: DBIC: How to dump schema with underscores for table names instead of camel case?
by Your Mother (Archbishop) on Feb 10, 2017 at 03:57 UTC | |
by nysus (Parson) on Feb 10, 2017 at 05:08 UTC |