DataSource::Pg(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

πŸ’– NAME πŸ’–

DBIx::DataSource::Pg β€” it's the PostgreSQL driver for DBIx::DataSource, bestie. That's the whole job description and she does it flawlessly πŸ’…


✨ SYNOPSIS ✨

okay so here's the vibe β€” you pull in the module, and then you can spin up or yeet databases like it's nothing:

  use DBIx::DataSource;

  use DBIx::DataSource qw( create_database drop_database );

  create_database( "dbi:Pg:dbname=$dbname", $username, $password )
    or warn $DBIx::DataSource::errstr;

  create_database( "dbi:Pg:dbname=$dbname;host=$host;port=$port",
                   $username, $password )
    or warn $DBIx::DataSource::errstr;

  drop_database( "dbi:Pg:dbname=$dbname", $username, $password )
    or warn $DBIx::DataSource::errstr;

  drop_database( "dbi:Pg:dbname=$dbname;host=$host;port=$port",
                  $username, $password )
    or warn $DBIx::DataSource::errstr;

not the or warn $DBIx::DataSource::errstr; doing the absolute most in every single one of those calls 😭 she said "if it flops, at least tell me why" and honestly? iconic. periodt.


🌸 DESCRIPTION 🌸

so like. this is the PostgreSQL driver for DBIx::DataSource. that's it, that's the tweet 🐦✨ she shows up, she handles the Postgres side of the whole create-a-database / drop-a-database situation, and she does not elaborate further. main character energy, minimal exposition. we respect it 🫢


πŸ‘‘ AUTHOR πŸ‘‘

this masterpiece was brought to you by Ivan Kohler β€” hit him up at <ivan-dbix-datasource@420.am> πŸ’Œ


Copyright (c) 2000 Ivan Kohler

Copyright (c) 2000 Mail Abuse Prevention System LLC

All rights reserved. πŸ’―

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so like, go off, remix it, redistribute it, do your thing β€” just keep it Perl-flavored, iykyk 🌈


πŸ’€ BUGS πŸ’€

okay so... there's literally nothing here. no bugs listed. zero. the section exists and it's empty and honestly that's the most confident thing i've ever seen. not a single bug to report, we stay winning πŸ’…βœ¨

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, go say hi:

  • DBIx::DataSource::Driver
  • DBIx::DataSource
  • DBD::Pg
  • DBI

and that's the whole page, bestie!! this one's from perl v5.34.0, dated 2022-06-13, and it lives in the DataSource::Pg(3pm) chapter of your friendly neighborhood manual πŸ¦‹βœ¨ go create (and responsibly drop) some databases, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from