Rechercher une page de manuel
DBIx::Class::Storage::DBI::mysql.3pm
Langue: en
Version: 2010-05-12 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
DBIx::Class::Storage::DBI::mysql - Storage::DBI class implementing MySQL specificsSYNOPSIS
Storage::DBI autodetects the underlying MySQL database, and re-blesses the $storage object into this class.my $schema = MyDb::Schema->connect( $dsn, $user, $pass, { on_connect_call => 'set_strict_mode' } );
DESCRIPTION
This class implements MySQL specific bits of DBIx::Class::Storage::DBI.It also provides a one-stop on-connect macro "set_strict_mode" which sets session variables such that MySQL behaves more predictably as far as the SQL standard is concerned.
STORAGE OPTIONS
set_strict_mode
Enables session-wide strict options upon connecting. Equivalent to:->connect ( ... , { on_connect_do => [ q|SET SQL_MODE = CONCAT('ANSI,TRADITIONAL,ONLY_FULL_GROUP_BY,', @@sql_mode)|, q|SET SQL_AUTO_IS_NULL = 0|, ] });
AUTHORS
See ``CONTRIBUTORS'' in DBIx::ClassLICENSE
You may distribute this code under the same terms as Perl itself.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre