SQLT-DUMPER(1p)

πŸ“¦
version 1.66 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ 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 🌈

  • perl
  • SQL::Translator
  • SQL::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