Refer to DateTime inflation example
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Manual / FAQ.pod
CommitLineData
3b44ccc6 1=head1 NAME
9c82c181 2
40dbc108 3DBIx::Class::Manual::FAQ - Frequently asked questions
9c82c181 4
40dbc108 5=head1 GENERAL
ee38fa40 6
35d4fe78 7=head2 What is the point of this module? Is it a fork of Class::DBI?
ee38fa40 8
40dbc108 9This is an alternative to L<Class::DBI>, intended to provide greater
159a8515 10functionality and simplicity.
11
40dbc108 12It is inspired by the L<Class::DBI> framework, and meant to support
159a8515 13compability with it, while restructuring the internals and making it
40dbc108 14possible to support some new features like self-joins, C<DISTINCT>,
15C<GROUP BY>s and more.
ee38fa40 16
130c6439 17=head2 What databases does it support?
ee38fa40 18
159a8515 19At least MSSQL, MySQL, Oracle, PostgreSQL and SQLite.
20
130c6439 21=head2 What's the current status of this module?
ee38fa40 22
159a8515 23This project is still at an early stage, so the maintainers don't make
24any absolute promise that full backwards-compatibility will be
25supported; however, if we can without compromising the improvements
26we're trying to make, we will, and any non-compatible changes will
27merit a full justification on the mailing list and a CPAN developer
28release for people to test against.
29
130c6439 30=head2 Where can I go for support?
ee38fa40 31
35d4fe78 32 Mailing list: http://lists.rawmode.org/mailman/listinfo/dbix-class/
159a8515 33
35d4fe78 34 SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
159a8515 35
35d4fe78 36 Wiki: http://dbix-class.shadowcatsystems.co.uk/
159a8515 37
35d4fe78 38 IRC: irc.perl.org#dbix-class
159a8515 39
61d1e2c2 40=head2 Inflating your date/time columns
41
42You can use L<DBIx::Class::InflateColumn> to automatically create
43L<DateTime> objects from your date/time columns. For more information,
44see L<DBIx::Class::InflateColumn>.
45
40dbc108 46=head1 POSTGRESQL-SPECIFIC PROBLEMS
159a8515 47
40dbc108 48=head2 Can't get last insert ID; inserts with serial primary keys fail
159a8515 49
40dbc108 50Older L<DBI> and L<DBD::Pg> versions do not handle C<last_insert_id>
51correctly, causing code that uses auto-incrementing primary key
52columns to fail with a message such as:
159a8515 53
35d4fe78 54 Can't get last insert id at /.../DBIx/Class/Row.pm line 95
159a8515 55
56In particular the RHEL 4 and FC3 Linux distributions both ship with
40dbc108 57combinations of L<DBI> and L<DBD::Pg> modules that do not work
58correctly.
159a8515 59
40dbc108 60L<DBI> version 1.50 and L<DBD::Pg> 1.43 are known to work.
159a8515 61
40dbc108 62=head1 SEE ALSO
63
64=over 4
ee38fa40 65
40dbc108 66=item L<DBIx::Class::Manual::Intro>
67
68=back
69
70=cut