One common practice to avoid problems with reserved words in column (or
table) names is to prefix every name with an underscore.
Is there an elegant and working way in DBIC to accomplish this?
I already tried
__PACKAGE__-add_columns(
user = {
data_type = 'varchar',
name = '_user',
Bernhard Graf wrote:
One common practice to avoid problems with reserved words in column (or
table) names is to prefix every name with an underscore.
Is there an elegant and working way in DBIC to accomplish this?
I already tried
__PACKAGE__-add_columns(
user = {
data_type =
Hello,
This is proposal for a filtering component, similar to
DBIx::Class::InflateColumn
It can -modify- columns transparently. When you read column - it inflates,
when you write - deflates.
On creating a new column, whole cycle passed - deflating for DB and inflating
for usage.
Module can
Peter Rabbitson wrote:
Do not mutilate column names, but instead use your tools the way they
were intended to be:
http://search.cpan.org/~ash/DBIx-Class-0.08010/lib/DBIx/Class/Storage
/DBI.pm#quote_char
I know these options, but
- their values depend on the underlying RDBMS,
- AFAIR their
Bernhard Graf wrote:
Peter Rabbitson wrote:
Do not mutilate column names, but instead use your tools the way they
were intended to be:
http://search.cpan.org/~ash/DBIx-Class-0.08010/lib/DBIx/Class/Storage
/DBI.pm#quote_char
I know these options, but
- their values depend on the
Hello,
This is proposal for a filtering component, similar to
DBIx::Class::InflateColumn
It can -modify- columns transparently. When you read column - it inflates,
when you write - deflates.
On creating a new column, whole cycle passed - deflating for DB and inflating
for usage.
Module can