SQLT-DUMPER(1)
hey bestie π welcome to the SQLT-DUMPER(1) page, part of the User Contributed Perl Documentation. weβre about to make schema dumping make sense, no cap.
β¨ NAME β¨
sqlt-dumper β create a dumper script from a schema. π
π SYNOPSIS π
sqlt-dumper -d Oracle [options] schema.sql > dumper.pl
./dumper.pl > data.sql
β¨ Options β¨
-h|--helpβ show help and exit.--skip=t1[,t2]β skip the tables in a comma-separated list.--skiplike=regexβ skip tables matching the regular expression.-u|--userβ database username.-p|--passwordβ database password.--dsnβ DSN for DBI.
π DESCRIPTION π
okay so hereβs the tea β: this script uses SQL::Translator to parse the SQL schema and create a Perl script that can connect to the database and dump the data as INSERT statements (a la mysqldump) or MySQLβs LOAD FILE syntax. iconic behavior, honestly. π
you may specify tables to βskipβ β and yes, you can also use a βskiplikeβ regular expression for that β and the generated dumper script will not have those tables. but plot twist π«’: these will also be options in the generated dumper, so you can wait to specify these options when you dump your database. literally so flexible.
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. slay. π
πΈ AUTHOR πΈ
Ken Youens-Clark <kclark@cpan.org>. π
π¦ SEE ALSO π¦
perlSQL::TranslatorSQL::Translator::Producer::Dumper
and thatβs the vibe check β
β this page is from perl v5.42.0, dated 2024-12-12. periodt. π
π¦ 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