move Firebird ODBC override for RETURNING to a SQLAHacks class
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / ODBC / Firebird.pm
1 package DBIx::Class::Storage::DBI::ODBC::Firebird;
2
3 use strict;
4 use warnings;
5 use base qw/DBIx::Class::Storage::DBI::InterBase/;
6 use mro 'c3';
7
8 =head1 NAME
9
10 DBIx::Class::Storage::DBI::ODBC::Firebird - Driver for using the Firebird RDBMS
11 through ODBC
12
13 =head1 SYNOPSIS
14
15 All functionality is provided by L<DBIx::Class::Storage::DBI::Interbase>, see
16 that module for details.
17
18 =cut
19
20 __PACKAGE__->sql_maker_class('DBIx::Class::SQLAHacks::ODBC::Firebird');
21
22 sub datetime_parser_type { __PACKAGE__ }
23
24 my $datetime_parser;
25
26 sub parse_datetime {
27     shift;
28     require DateTime::Format::Strptime;
29     $datetime_parser ||= DateTime::Format::Strptime->new(
30         pattern => '%F %H:%M:%S',
31         on_error => 'croak',
32     );
33     $datetime_parser->parse_datetime(shift);
34 }
35
36 1;
37
38 =head1 AUTHOR
39
40 See L<DBIx::Class/AUTHOR> and L<DBIx::Class/CONTRIBUTORS>.
41
42 =head1 LICENSE
43
44 You may distribute this code under the same terms as Perl itself.
45
46 =cut