>
> I think you’d be better off writing it to a different file. That way you 
> control the file format and exactly what the file contains. Couchbase Lite 
> database files aren’t really meant as an interchange format; they’re more 
> of an implementation detail of how the data gets stored locally.
>
>
Well I'm actually embedding the database into an NSDocument/UIDocument 
NSFileWrapper (kind of like a UIManagedDocument) so users can share the 
actual document files if they like (and open multiple documents at the same 
time if they like). So that's why I was thinking that the dual database 
approach would work well in that situation. Both would be embedded within 
the file wrapper and then I can just save out a copy without the regular 
database and just include the metadata database.

Thanks,

Brendan

On Tuesday, July 7, 2015 at 7:20:12 PM UTC-6, Jens Alfke wrote:
>
>
> On Jul 7, 2015, at 3:39 PM, Brendan Duddridge <[email protected] 
> <javascript:>> wrote:
>
> I know I could probably do this in code by reading all the metadata 
> separately from the regular data and dumping it to a separate file, but it 
> would be super easy to simply copy the metadata database independently of 
> the regular data database and bang, you have an empty database with 
> everything setup already for you ready to enter your regular data.
>
>
> I think you’d be better off writing it to a different file. That way you 
> control the file format and exactly what the file contains. Couchbase Lite 
> database files aren’t really meant as an interchange format; they’re more 
> of an implementation detail of how the data gets stored locally.
>
> —Jens
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/d6a201af-065f-40d6-8e9f-476835cff0d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to