file_based_transaction_manager 0.0.4 copy "file_based_transaction_manager: ^0.0.4" to clipboard
file_based_transaction_manager: ^0.0.4 copied to clipboard

Save a Copy from your files easily and rollback them any time.

File Based Transaction Manager

PART OF GTC OPEN SOURCE INTIATIVE

Features #

Create Multiple Sessions Add Files to Sessions Remove Files from Session Rollback Sessions Close Sessions

Getting started #

TODO: Save a Copy from your files easily and rollback them any time. start using the package.

Usage #

Example of how you can use the library:


TransactionManager x2 = TransactionManager(folderName: "temp");
var session = x2.beginSession();
var session2 = x2.beginSession();

var file = File(
    '${Directory.current.path}/example/file_based_transaction_manager_example.dart');
var file2 = File('${Directory.current.path}/example/example_file.txt');

session.addFile(file);
session2.addFile(file2);

file2.deleteSync();
await Future.delayed(Duration(seconds: 15));

x2.rollback(session);
x2.close(session);

Additional information #

draft version

2
likes
130
pub points
0%
popularity

Publisher

unverified uploader

Save a Copy from your files easily and rollback them any time.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on file_based_transaction_manager