[Dbix-class] Getting access to the DB handle
Matt S Trout
dbix-class at trout.me.uk
Thu May 18 14:10:35 CEST 2006
Dan Horne wrote:
> Hi all
> From the DBIx::Class::InflateColumn doco:
> "Replace DateTime::Format::Pg [in the sample code] with the appropriate
> module for your database, or consider DateTime::Format::DBI"
> How would one use DateTime::Format::DBI in the inflate/deflate
> specification? I assume that I'd some how need to get the database handle in
> my table class definition, but I'm not sure how to do this...
DateTime::Format::DBI only supports MySQL and Postgres, and as such is
What I'm doing instead is adding a datetime_parser method to storage and
writing an AutoInflate::DateTime component that'll pick up the column data
type and setup inflate/deflate methods appropriately - have a look at
branches/DBIx-Class/datetime in svn for my progress so far.
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Dbix-class