KiokuD...NScope(3pm)

πŸ“¦
version 0.57 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ’– KiokuDB::LiveObjects::TXNScope β€” Transaction scope πŸ’–

okay bestie, welcome to the perl docs, but make it cute. this page lives in the User Contributed Perl Documentation section and it's filed under the manual name KiokuD...NScope(3pm) (yeah they truncated it, iconic behavior honestly). we're on version 0.57 btw. let's go πŸ¦‹


✨ SYNOPSIS ✨

$txn_scope = $live_objects->new_txn;

$txn_scope->update_entries(@updated);

$txn_scope->rollback;

look at that. three lines. clean. no notes. πŸ’…


🌸 DESCRIPTION 🌸

so basically this is an auxiliary class β€” a little helper guy, not a main character β€” used by transaction scoping to roll back entries that got updated during a transaction when that transaction gets aborted. like, oops, we're undoing all of that, sorry babe 😭

and fr fr: this is used internally in "txn_do" in KiokuDB, so you should not need to use it directly. it's giving backstage crew. let it cook in the background, bestie. πŸ™ˆ


πŸŽ€ ATTRIBUTES πŸŽ€

  • entries β€” an ordered log of updated entries. it's literally keeping receipts, in order, periodt. 🧾✨

πŸ’… METHODS πŸ’…

  • update_entries β€” called by "update_entries" in KiokuDB::LiveObjects. its whole job? adding entries to "entries". that's it. that's the gig. 🫢
  • rollback β€” calls "KiokuDB::LiveObjects/rollback_entries" with all the recorded entries. every single one. no crumbs left behind. πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Yuval Kogman <nothingmuch@woobling.org>


This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


okay and that's the whole page!! no cap. this doc was generated by perl v5.34.0 on 2022-05-23, and the manual name is KiokuD...NScope(3pm) β€” yes it's abbreviated, we love her anyway. mwah, bye bestie πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from