[Dbix-class] Explicit class naming

Dag-Erling Smørgrav des at des.no
Wed Feb 13 17:16:02 GMT 2013


I have a sneaking suspicion that this is a FAQ, but I can't find the
answer anywhere.

I have a schema where some of the table names are acronyms, and I'd like
dbicdump to create classes with all-caps names for those tables.  For
instance, I have a table named "mac", and I'd like the class to be named
MAC rather than Mac.  Is there a way to force the class name, perhaps by
passing a hash to DBIx::Schema::Loader that maps the (case insensitive)
table name to a (case sensitive) class name?

Relevant version numbers:

SQLite 3.7.14.1
DBI 1.623
DBD::SQLite 1.37
DBIx::Class 0.08205
DBIx::Class::Schema::Loader 0.07033

DES
-- 
Dag-Erling Smørgrav - des at des.no



More information about the DBIx-Class mailing list