Commit | Line | Data |
dff4c3a3 |
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 | |
dff4c3a3 |
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 | |
90489c23 |
18 | To build the ODBC driver for Firebird on Linux for unixODBC, see: |
19 | |
20 | L<http://www.firebirdnews.org/?p=1324> |
21 | |
1ae0a36c |
22 | =cut |
23 | |
1696e04f |
24 | __PACKAGE__->sql_maker_class('DBIx::Class::SQLAHacks::ODBC::Firebird'); |
1ae0a36c |
25 | |
9cd0b325 |
26 | sub datetime_parser_type { __PACKAGE__ } |
27 | |
323148de |
28 | my $datetime_parser; |
9cd0b325 |
29 | |
30 | sub parse_datetime { |
31 | shift; |
32 | require DateTime::Format::Strptime; |
323148de |
33 | $datetime_parser ||= DateTime::Format::Strptime->new( |
9cd0b325 |
34 | pattern => '%F %H:%M:%S', |
35 | on_error => 'croak', |
36 | ); |
323148de |
37 | $datetime_parser->parse_datetime(shift); |
9cd0b325 |
38 | } |
39 | |
1ae0a36c |
40 | 1; |
41 | |
dff4c3a3 |
42 | =head1 AUTHOR |
43 | |
44 | See L<DBIx::Class/AUTHOR> and L<DBIx::Class/CONTRIBUTORS>. |
45 | |
46 | =head1 LICENSE |
47 | |
48 | You may distribute this code under the same terms as Perl itself. |
49 | |
50 | =cut |