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...

"Don't".

DateTime::Format::DBI only supports MySQL and Postgres, and as such is 
next-to-useless.

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/ +

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/

Reply via email to