DBIx::C...::mysql(3)
πΈ NAME πΈ
okay so bestie, this is the DBIx::C...::mysql(3) page from the User Contributed Perl Documentation set β and the actual module here is DBIx::Class::Storage::DBI::mysql, a Storage::DBI class implementing MySQL specifics. slay. π
β¨ SYNOPSIS β¨
Storage::DBI autodetects the underlying MySQL database, and re-blesses the $storage object into this class. no cap.
my $schema = MyApp::Schema->connect( $dsn, $user, $pass, { on_connect_call => 'set_strict_mode' } );
π¦ DESCRIPTION π¦
This class implements the MySQL-specific bits of DBIx::Class::Storage::DBI, like AutoIncrement column support and savepoints. It also augments the SQL maker to support the MySQL-specific STRAIGHT_JOIN join type, which you can use by specifying join_type => 'straight' in the relationship attributes. iconic. β¨
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. periodt. π«Ά
π 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|,
]
});
π FURTHER QUESTIONS? π
Check the list of additional DBIC resources. π«Ά
π COPYRIGHT AND LICENSE π
This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.
mwah π β baked with perl v5.42.0, dated 2025-01-22, and still proudly the DBIx::C...::mysql(3) page. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class 0.082844-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms