Skip to content

Transactions #29

Description

@aidin36

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions