DataSo...::mysql(3pm)

πŸ“¦
version 0.02 Β· 2 versions
  • 0.02 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.02 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 (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::Driver
  • DBIx::DataSource
  • DBD::mysql
  • DBI

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