refactor Strptime-based DateTime parsers
authorRafael Kitover <rkitover@cpan.org>
Thu, 22 Apr 2010 10:46:20 +0000 (10:46 +0000)
committerRafael Kitover <rkitover@cpan.org>
Sun, 26 Aug 2012 16:11:13 +0000 (12:11 -0400)
commit13ede1a9f0b8a9ad455b047da213b307b31ee724
tree32b820cffd1e5ba58eebe37200dc0ee135d5a090
parent6343a20374932aeb277eb63a91f9769f9da2f4b6
refactor Strptime-based DateTime parsers

Add a new Storage API, ->datetime_parse_via to replace
->datetime_parser_type which also takes Strptime formats and creates the
parsers based on those formats instead of having to define parser
classes for those formats in the Storage classes.
19 files changed:
Changes
lib/DBIx/Class/Storage/DBI.pm
lib/DBIx/Class/Storage/DBI/ADO/MS_Jet.pm
lib/DBIx/Class/Storage/DBI/ADO/Microsoft_SQL_Server.pm
lib/DBIx/Class/Storage/DBI/DB2.pm
lib/DBIx/Class/Storage/DBI/Informix.pm
lib/DBIx/Class/Storage/DBI/InterBase.pm
lib/DBIx/Class/Storage/DBI/MSSQL.pm
lib/DBIx/Class/Storage/DBI/ODBC/ACCESS.pm
lib/DBIx/Class/Storage/DBI/ODBC/Firebird.pm
lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
lib/DBIx/Class/Storage/DBI/Pg.pm
lib/DBIx/Class/Storage/DBI/Replicated.pm
lib/DBIx/Class/Storage/DBI/SQLAnywhere.pm
lib/DBIx/Class/Storage/DBI/SQLite.pm
lib/DBIx/Class/Storage/DBI/Sybase/ASE.pm
lib/DBIx/Class/Storage/DBI/Sybase/Microsoft_SQL_Server.pm
t/inflate/datetime_missing_deps.t
t/inflate/datetime_sybase.t