Hello everyone,
I am currently working with the openLCA API and have run into a specific challenge. Normally, when you use the openLCA API to create product systems or processes, these objects are automatically saved in the openLCA database. This is evident when you refresh the navigation in the openLCA client and see the newly created entities.
However, my needs are different. I want to dynamically create these product systems and processes at runtime within my code, but I do not want them to be automatically committed to the openLCA database. My goal is to manage these objects entirely in memory or within a temporary context, essentially replicating openLCA's functionality without permanent changes to the database.
I have two main questions:
- Is it possible to configure the openLCA API such that objects are created and manipulated without being persisted in the database?
- If the API does not natively support this functionality, what alternative approaches would you suggest for achieving it? Would setting up a temporary or in-memory database, or possibly intercepting API calls to block database commits, be viable solutions?