SQL::Tr...::Dumper(3)
SQL::Tr...::Dumper(3) π β¨
Okay bestie, welcome to the User Contributed Perl Documentation page for SQL::Tr...::Dumper(3) β yes, the manual name is literally SQL::Tr...::Dumper(3), and it's giving database-dumper realness. Let's get into it π«Ά
πΈ NAME πΈ
SQL::Tr...::Dumper β SQL Dumper producer for SQL::Translator, no cap π
β¨ SYNOPSIS β¨
use SQL::Translator::Producer::Dumper;
Options:
db_user Database username
db_password Database password
dsn DSN for DBI
mysql_loadfile Create MySQL's LOAD FILE syntax instead of INSERTs
skip=t1[,t2] Skip tables in comma-separated list
skiplike=regex Skip tables in comma-separated list
π DESCRIPTION π
So this producer creates a Perl script that can connect to a database and dump the data as INSERT statements (a la mysqldump) or as a file suitable for MySQL's LOAD DATA command. Iconic behavior, honestly π
If you enable add-truncate or specify tables to skip (also using the skiplike regular expression), then the generated dumper script will leave out those tables. Plot twist: these will also be options in the generated dumper, so you can wait to specify these options when you dump your database. Very choose-your-own-adventure of it all β¨
The database username, password, and DSN can be hardcoded into the generated script, or part of the DSN can be intuited from the database argument. Flexible? Obsessed. π
π AUTHOR π
Ken Youens-Clark <kclark@cpan.org>. Periodt π
Source/version vibe check: perl v5.42.0, dated 2024-12-12. Byeee bestie, go dump that data responsibly ππΈπ«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-SQL-Translator 1.660.0-bp160.1.11 Β· (Artistic-1.0 OR GPL-1.0-or-later) AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms