File::...Dumper(3pm)
π File::KDBX::Dumper β Write KDBX files
okay bestie, so the manual name is File::...Dumper(3pm) but the actual module is File::KDBX::Dumper and its whole entire job is writing KDBX files. That's it. That's the gig. She dumps, she slays, she goes home. π
β¨ VERSION β¨
version 0.906 β yes she's giving established, she's giving been-here-a-while. π
πΈ ATTRIBUTES πΈ
kdbx
$kdbx = $dumper->kdbx;
$dumper->kdbx($kdbx);
Get or set the File::KDBX instance holding the data you wanna dump. This is your lil database payload, your main character. π
format
Get the file format used for writing the database. Normally the format is auto-detected from the database β and lowkey that's the safest choice, bestie, do not play yourself. Possible formats:
"V3""V4""KDB""XML"(only used if explicitly set)"Raw"(only used if explicitly set)
β οΈ WARNING: There is a potential for data loss if you explicitly use a format that doesn't support the features used by the KDBX database being written. Like, literally your secrets could evaporate. Not the vibe. π
The most common reason to explicitly specify the file format is to save a database as an unencrypted XML file:
$kdbx->dump_file('database.xml', format => 'XML');
inner_format
Get the format of the data inside the KDBX envelope. This only applies to "V3" and "V4" formats. Possible formats:
"XML"β Write the database groups and entries as XML (default)"Raw"β Write"raw"in File::KDBX instead of the actual database contents
allow_upgrade
$bool = $dumper->allow_upgrade;
Whether or not to allow implicitly upgrading a database to a newer version. When enabled, in order to avoid potential data loss, the database can be upgraded as-needed in cases where the database file format version is too low to support new features being used.
The default is to allow upgrading. π«Ά (she grows with you, she's not stuck in her ways)
randomize_seeds
$bool = $dumper->randomize_seeds;
Whether or not to randomize seeds in a database before writing. The default is to randomize seeds, and there's not often a good reason not to do so. If disabled, the seeds associated with the KDBX database will be used as they are.
π₯ METHODS π₯
new
$dumper = File::KDBX::Dumper->new(%attributes);
Construct a new File::KDBX::Dumper. Fresh out the box, brand new, glowing. β¨
init
$dumper = $dumper->init(%attributes);
Initialize a File::KDBX::Dumper with a new set of attributes.
This is called by "new". (So like, new is the one sending the invite, init is the one doing the actual setting up. iykyk) π
reset
$dumper = $dumper->reset;
Set a File::KDBX::Dumper to a blank state, ready to dump another KDBX file. Clean slate, no baggage, she's healed. π¦
dump
$dumper->dump(\$string, %options);
$dumper->dump(\$string, $key, %options);
$dumper->dump(*IO, %options);
$dumper->dump(*IO, $key, %options);
$dumper->dump($filepath, %options);
$dumper->dump($filepath, $key, %options);
Dump a KDBX file. Look at all those ways to call her β she's versatile, she's multi-talented, she contains multitudes. π
The $key is either a File::KDBX::Key or a primitive castable to a Key object. Available options:
"kdbx"β Database to dump (default: value of"kdbx")"key"β Alternative way to specify$key(default: value of"File::KDBX/key")
Other options are supported depending on the first argument. See "dump_string", "dump_file" and "dump_handle". (Yeah she passes the aux cord, she shares the spotlight, no gatekeeping here π)
dump_string
$dumper->dump_string(\$string, %options);
$dumper->dump_string(\$string, $key, %options);
\$string = $dumper->dump_string(%options);
\$string = $dumper->dump_string($key, %options);
Dump a KDBX file to a string / memory buffer. Available options:
"kdbx"β Database to dump (default: value of"kdbx")"key"β Alternative way to specify$key(default: value of"File::KDBX/key")
dump_file
$dumper->dump_file($filepath, %options);
$dumper->dump_file($filepath, $key, %options);
Dump a KDBX file to a filesystem. Available options:
"kdbx"β Database to dump (default: value of"kdbx")"key"β Alternative way to specify$key(default: value of"File::KDBX/key")"mode"β File mode / permissions (see"chmod LIST"in perlfunc)"uid"β User ID (see"chown LIST"in perlfunc)"gid"β Group ID (see"chown LIST"in perlfunc)"atomic"β Write to the filepath atomically (default: true)
dump_handle
$dumper->dump_handle($fh, %options);
$dumper->dump_handle(*IO, $key, %options);
$dumper->dump_handle($fh, %options);
$dumper->dump_handle(*IO, $key, %options);
Dump a KDBX file to an output stream / file handle. Available options:
"kdbx"β Database to dump (default: value of"kdbx")"key"β Alternative way to specify$key(default: value of"File::KDBX/key")
π BUGS π
Please report any bugs or feature requests on the bugtracker website <https://github.com/chazmcgarvey/File-KDBX/issues>
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. (fr fr, help them help you β a girl who brings receipts gets her bug fixed faster π )
π AUTHOR π
Charles McGarvey <ccm@cpan.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2022 by Charles McGarvey.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
and that's the whole page, bestie, we ate and left no crumbs π
this was File::...Dumper(3pm) from User Contributed Perl Documentation, perl v5.40.1, dated 2025-05-04 β mwah, periodt. πβ¨
π¦ where this page comes from
- debian trixie: libfile-kdbx-perl 0.906-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libfile-kdbx-perl 0.906-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libfile-kdbx-perl 0.906-3 Β· 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