Skip to content

Feature Request: Database Transactions / Snapshots #107

@strongly-typed

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions