Hi everybody,
I have questions regarding transactions in basex.
To provide a context, we have following requirements in our application that uses basex: when executing any update or replace operations, we need to validate the modified XML structures against the corresponding schemas.
We only want the result of the update / replace operations to be saved in basex, if the resulting XML structures are valid.
So, what we first thought of was creating a transaction, executing the update/replace operations, perform the validation, and if the result of the operations result in invalid XML, perform a rollback.
Now we weren’t able to find documentation concerning rollback, the only documentation we found is
http://docs.basex.org/wiki/Transaction_Management, which does not mention rollback.
So my questions are:
1.
Is there a rollback functionality and where can I find documentation?
2.
If there is no rollback functionality, is it planned for upcoming releases?
3.
Are there best practices for the requirements described above?
Note: using the validation module is not an option, as apparently only single schemas / schema files are supported and our application schemas are quite complex and located in several schemas, so validation has to be performed in our application.
Best regards,
Julien Charon
Avitech GmbH
Engineering AxL
Tel.: +49 (0)7541/282-177
Fax: +49 (0)7541/282-199
e-mail:
julien.charon@avitech.aero
________________________________________________
Avitech GmbH
Principal Office: Bahnhofplatz 1 | 88045 Friedrichshafen | Germany
Court Registration: Amtsgericht Ulm | HRB 728293
Geschäftsführer/Managing Director: Antonio Maria Gonzalez Gorostiza
This message may contain confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.