File::...saction(3pm)

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

✨ 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 πŸ’œ

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 is File::KDBX::Transaction(3pm), stamped with perl v5.40.1 and dated 2025-05-04 β€” go commit something (or roll it back, we support both) πŸŽ€πŸ¦‹
πŸ“¦ where this page comes from