Hi Christian,
Thanks for answering the mail. I don’t have that much experience with xQuery, but what you’re basically saying is to setup another database for archiving right?
Kind regards, Rob
Op 6 nov. 2020, om 18:03 heeft Christian Grün christian.gruen@gmail.com het volgende geschreven:
Hi Rob,
Thanks for writing to the list. As promised, I’ll give you a quick reply, and I can basically confirm what Michael has replied to you already:
The existing modules of BaseX don’t provide a ready solution for versioning features, but it’s perfectly feasible to build a versioning solution with XQuery. If you use RESTXQ for storing and retrieving data, you could e.g. move the current version of documents to an archive database and replace it with the incoming new document.
The discussed Database Module will give you some insight into how to create new databases and add documents to existing databases. How much have you worked with XQuery so far?
All the best, Christian
On Wed, Nov 4, 2020 at 2:13 PM Rob <private@tjalma.com mailto:private@tjalma.com> wrote: Hi all,
I first created an Github Issue for this question, but that’s not the right play :)
So hereby my question:
I was wondering how versioning works in BaseX. So I have a XML file, I store another version of that same XML file and within BaseX there is some kind of versioning so I can retrieve both versions of the XML file.
I look into your mail archive, and I found the following mail: https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg07369.htm... https://www.mail-archive.com/basex-talk@mailman.uni-konstanz.de/msg07369.html
Here it states that with using database metadata (Database Module, https://docs.basex.org/wiki/Database_Module https://docs.basex.org/wiki/Database_Module), you can achieve versioning. But I don't see anything about it in the documentation. So I was wondering if it is a thing in BaseX (versioning), and how it's accomplished 👍
Thanks!
Kind regards, Rob Tjalma