---
name: "File::KDBX::Transaction"
section: "3pm"
platform: "linux"
package: "libfile-kdbx-perl"
version: "0.906-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/File::KDBX::Transaction"
---

# File::KDBX::Transaction(3pm)

Make multiple database edits atomically

## NAME

File::KDBX::Transaction - Make multiple database edits atomically

## VERSION

version 0.906

## ATTRIBUTES

### object

Get the object being transacted on.

## METHODS

### new

```
    $txn = File::KDBX::Transaction->new($object);
```

Construct a new database transaction for editing an object atomically.

### commit

```
    $txn->commit;
```

Commit the transaction, making updates to the "object" permanent.

### rollback

```
    $txn->rollback;
```

Roll back the transaction, throwing away any updates to the "object" made since the transaction began. This happens automatically when the transaction is released, unless it has already been committed.

## 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.

## 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.
