Subject: | Would like a .dcslrc file |
I'm not sure of the exact syntax, but it would be nice to have a
.schema_rc file. Currently when I rebuild my schema, I do the following:
perl script/veure_create.pl model \
DB DBIC::Schema Veure::Schema create=static \
exclude=dbix_migration \
components=TimeStamp,EncodedColumn \
dbi:Pg:dbname=veure $user $pass
I've just created a "stations_visited" table and in that table I have a
reference to "character_id". In my Veure::Schema::Result::Character
class, I now have the following "has_many" relationship:
__PACKAGE__->has_many(
"stations_visiteds",
"Veure::Schema::Result::StationsVisited",
{ "foreign.character_id" => "self.id" },
);
"stations_visited" is disappointing. What I would love to see is a
.schema_rc file which gives me the power to override certain names so
that if DCSL's normally good naming defaults don't work, it's easy to
still override them.
I'm sure I could subclass DCSL to get what I want, but really, I just care
about overriding naming at times. Slogging through all of the code
when I just want a configuration file is a distraction from building my
own code :)
Cheers,
Ovid