DataSo...::mysql(3pm)
π DataSo...::mysql(3pm) π
okay so bestie, welcome to the manual page for DataSo...::mysql β it's the DataSo...::mysql(3pm) situation, it lives in the User Contributed Perl Documentation corner of the world, and it's genuinely so much simpler than it sounds. sit down, grab a strawberry π, let's go.
β¨ NAME β¨
DBIx::DataSource::mysql β the MySQL driver for DBIx::DataSource. that's it. that's the whole name. short, sweet, iconic π
πΈ SYNOPSIS πΈ
here's the vibe, copy-paste ready, no notes:
use DBIx::DataSource;
use DBIx::DataSource qw( create_database drop_database );
create_database( "dbi:mysql:$database", $username, $password )
or warn $DBIx::DataSource::errstr;
create_database( "dbi:mysql:database=$database;host=$hostname;port=$port",
$username, $password )
or warn $DBIx::DataSource::errstr;
drop_database( "dbi:mysql:$database", $username, $password )
or warn $DBIx::DataSource::errstr;
drop_database( "dbi:mysql:database=$database;host=$hostname;port=$port",
$username, $password )
or warn $DBIx::DataSource::errstr;
see how there's two flavours? either you just hand over "dbi:mysql:$database" and let it do its thing, or you go full main character and spell out "dbi:mysql:database=$database;host=$hostname;port=$port" so you control exactly where it's connecting. both are valid, both are giving π¦
and the or warn $DBIx::DataSource::errstr; at the end of every single one? that's your little safety net. if the call fails, you get told why instead of just sitting there confused. protect that line with your life π
π DESCRIPTION π
fr fr, this is just the MySQL driver for DBIx::DataSource. that's the entire description. it does the MySQL version of the thing. periodt β¨
π«Ά AUTHOR π«Ά
this legend right here: Ivan Kohler <ivan-dbix-datasource@420.am> β yeah, they wrote it, we thank them, moving on π
π COPYRIGHT π
Copyright (c) 2000 Ivan Kohler Copyright (c) 2000 Mail Abuse Prevention System LLC All rights reserved.
and the legal tea: this program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so like, yes you can share it, no you can't be weird about it, iykyk π§
π BUGS π
literally nothing listed here. the BUGS section is empty. not a single bug on the record. we love a clean slate bestie πβ¨ (no cap β there's genuinely nothing under this heading in the original.)
β SEE ALSO β
go read these next, they're the whole friend group:
DBIx::DataSource::DriverDBIx::DataSourceDBD::mysqlDBI
and that's the page!! written by Ivan Kohler, blessed by Mail Abuse Prevention System LLC, and this doc is from perl v5.34.0, dated 2022-06-13 β so if you're reading this in the future, hi, hope MySQL still slaps π
π¦ where this page comes from
- debian bookworm: libdbix-datasource-perl 0.02-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdbix-datasource-perl 0.02-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdbix-datasource-perl 0.02-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdbix-datasource-perl 0.02-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdbix-datasource-perl 0.02-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms