KiokuDB::Backend::Role::TXN(3pm) | User Contributed Perl Documentation | KiokuDB::Backend::Role::TXN(3pm) |
KiokuDB::Backend::Role::TXN - Backend level transaction support.
version 0.57
package MyBackend; use Moose; with qw( KiokuDB::Backend KiokuDB::Backend::Role::TXN ); sub txn_begin { ... } sub txn_commit { ... } sub txn_rollback { ... }
This API is inspired by standard database transactions much like you get with DBI.
This is the low level interface required by "txn_do" in KiokuDB.
The "rollback" callback should be fired when the transaction will be aborted.
This method can return a transaction handle that will later be passed to "txn_commit" or "txn_rollback" as necessary.
The current handle will be passed to nested calls to "txn_begin".
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.
2022-05-23 | perl v5.34.0 |