File::...saction(3pm)
β¨ NAME β¨
File::KDBX::Transaction β bestie, it makes multiple database edits happen atomically π
like, all or nothing, no messy half-edits, periodt.
(Also hi, this is the File::KDBX::Transaction page from section 3pm, the one and only π)
πΈ VERSION πΈ
version 0.906 β yeah she's on 0.906, keep up π¦
π ATTRIBUTES π
π object
Get the object being transacted on. Like, the actual thing you're editing. That's her. That's the main character π
π METHODS π
β¨ new
$txn = File::KDBX::Transaction->new($object);
Construct a new database transaction for editing an object atomically. You hand it an $object, it hands you back a $txn, and now everything you do inside is one big glowy bundle π«Άβ¨
π₯ commit
$txn->commit;
Commit the transaction, making updates to the object permanent. This is the "okay lock it in" moment π no takebacks after this one, bestie.
π§ rollback
$txn->rollback;
Roll back the transaction, throwing away any updates to the object made since the transaction began. All that work? Gone. Poof. π
Also lowkey important: this happens automatically when the transaction is released, unless it has already been committed. So if you just... forget about it π the rollback comes for you anyway. Not me being forgetful, it's the destructor's job, iykyk.
π BUGS π
Please report any bugs or feature requests on the bugtracker website <https://github.com/chazmcgarvey/File-KDBX/issues> β she wants your feedback fr fr, no cap π
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. Like, show us the receipts π§Ύ a failing test is the most iconic thing you can bring ok??
π AUTHOR π
Charles McGarvey <ccm@cpan.org> β the icon, the legend π
π 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. So yes, free, legal, slay πΈ
k bye bestie π this page isFile::KDBX::Transaction(3pm), stamped withperl v5.40.1and dated2025-05-04β go commit something (or roll it back, we support both) ππ¦
π¦ 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