Skip to content

Feature Request: Database Transactions / Snapshots #107

Description

@strongly-typed

I essence, the CWAPI is doing (complex) transformations on the internal database of Cadwork.

When a (complex) script has a bug and therefore an exception it is only partly executed and and I have only partial work, e.g. only 100 of 200 walls modified.

Is there the concept of a database transaction in CWAPI so that an automagically roll-back is done when a script is only partly executed? Or can I create a snapshot at the beginning of my script and switch back to this snapshot if my script fails (due to a bug in my script)?

I cannot create all my scripts idempotent.

Any hints welcome!

Activity

  1. locked and limited conversation to collaborators on Apr 18, 2024
  2. converted this issue into a discussion #175 on Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions