Hi,
I would like to make an export routine to store a whole bunch of CBLDocuments in a single file. I would like to later import that file into the same or different database. Imagine a scenario where a user has a bunch of data they send to another person, that other person makes changes to the data, then sends it back. I know this can easily be accomplished by syncing, but there are other reasons for wanting to share data like this. Another example might be that someone maintains a list of movie titles and reviews and wants to share that data on my website forum so that anyone else can download that same data into their database.
I'm thinking that I will either need to use the properties or userProperties property of the CBLDocument class. I know that properties contains the CBL metadata information who's properties start with the underscore character (e.g. "_id" and "_rev"). So I was just wondering if I should avoid using properties and just use userProperties because of that?
But then again, I have relationships in my model that I want to maintain, so I think maybe using properties is the correct thing to do in this case. That way all my relationships will be intact after the import.
Are there any issues I should watch out for by doing this?
Thanks,
Brendan