Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transactions #29

Open
aidin36 opened this issue May 7, 2014 · 1 comment
Open

Transactions #29

aidin36 opened this issue May 7, 2014 · 1 comment

Comments

@aidin36
Copy link
Owner

aidin36 commented May 7, 2014

Client of libtocc should have an option to start and then commit/rollback transactions.

For example, if user passes --import and --assign to the CLI, the CLI will first import files and then assign tags to them. What if the second action fails? Or worse, after some files are imported, it fails to import others.

There's a lot of other situations we need transactions.

Things to consider:

  1. UnQlite supports transactions. But we also need transactions in file system layer.
  2. We should design a clean and easy-to-use interface for starting and ending transactions.

Discuss your ideas here.

@aidin36
Copy link
Owner Author

aidin36 commented May 30, 2014

A note about the number 2 above: Beside the methods to start/commit/rollback transactions, there should be a way to auto-manage a transaction. Something like Python's with keyword, or C#'s using keyword.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant