Hello. I am currently facing two problems with Rose::DB::Object.
Problem #1.
I have a timestamp column in database with default value of "TIMEZONE('UTC', NOW())" which
is a Postgres-specific way of saying "current time in UTC timezone". The only way to make this sort
of default work in RDBO seems to be to enable $db->keyword_function_calls, which seems dangerous.
Is there any other way to make a timestamp column with default value like above in RDBO that does not
involve enabling keyword_function_calls?
Problem #2.
I have a uuid type column in a table in a postgres db. Seeing how there is no support for this specific
column type, I went to see what auto_init will come up with for it, and it produced as type => 'scalar'
column, so I went with it. But my column is defined in database with default "uuid_generate_v4()" and
there does not seem to be any way to make this work with RDBO at all.
A new column metadata option that could be used instead of 'default' could help solve both of these
inline_default => "TIMEZONE('UTC', NOW())"
and
inline_default => "uuid_generate_v4()"
But since such option is not available I would like to ask if there are any solutions to the above problems
(that do not involve keyword_function_calls).
Thank you in advance.