SQLT-DUMPER(1p)
β¨ SQLT-DUMPER(1p) β the sqlt-dumper era β¨
ok bestie come SIT, we're doing a whole thing π
this is sqlt-dumper, and what it does is create a dumper script from a schema. like, it writes the script that dumps your data. meta. iconic. no cap.
π SYNOPSIS π
sqlt-dumper -d Oracle [options] schema.sql > dumper.pl
./dumper.pl > data.sql
then the options, and yes we are listing every single one, i would never do you like that π
-h|--help Show help and exit
--skip=t1[,t2] Skip tables in comma-separated list
--skiplike=regex Skip tables matching the regular expression
-u|--user Database username
-p|--password Database password
--dsn DSN for DBI
πΈ DESCRIPTION πΈ
so the lore is: this script uses SQL::Translator to parse the SQL schema, and then it creates a Perl script π¦ β a whole baby script, birthed β that can connect to the database and dump the data as INSERT statements (a la mysqldump) or MySQL's LOAD FILE syntax. two flavours, both slay.
you may also specify tables to "skip" (also using a "skiplike" regular expression, yes both exist, don't make me choose) and the generated dumper script will not have those tables. gone. not invited to the party π«.
however π these will also be options in the generated dumper, so you can wait to specify these options when you dump your database. the choice is genuinely yours, it's giving flexible.
and 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. like it justβ¦ figures it out. main character energy fr fr π₯
π AUTHOR π
Ken Youens-Clark <kclark@cpan.org>.
π SEE ALSO π
perlSQL::TranslatorSQL::Translator::Producer::Dumper
that's the whole vibe bestie, go dump some data and text me when it works π«Ά
perl v5.40.0 Β· 2024-11-23 Β· SQLT-DUMPER(1p) π
π¦ where this page comes from
- debian trixie: libsql-translator-perl 1.66-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsql-translator-perl 1.66-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsql-translator-perl 1.66-1 Β· 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