Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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 ( [id://1181566]=note: print w/replies, xml ) Need Help??


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

Update:
I misread the question. Sorry. Looks like this new V8 stuff is to make Camelcase work when the objective is to not make Camelcase work. In that case maybe some lower "name" parameter other than v8 will do the trick?
------

This may not be of much help as I have almost no experience with this. The docs are pretty complicated. But look at naming. Something like naming => { ALL => 'v8', force_ascii => 1 } looks appropriate,

And also, see v8 discussion:

v8

(EXPERIMENTAL) The default mode is "v7", to get "v8" mode, you have to specify it in "naming" explicitly until 0.08 comes out. "monikers" and "column_accessors" are created using String::ToIdentifier::EN::Unicode or String::ToIdentifier::EN if "force_ascii" is set; this is only significant for names with non-\w characters such as .. CamelCase identifiers with words in all caps, e.g. VLANValidID are supported correctly in this mode. For relationships, belongs_to accessors are made from column names by stripping postfixes other than _id as well, for example just Id, _?ref, _?cd, _?code and _?num, case insensitively.
  • Comment on Re: DBIx: 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://1181566]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-04-19 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found