Hi Jens,
Ah ok, great. I'll give that a shot and see how it goes.
Thanks!
Brendan
On Monday, August 3, 2015 at 3:05:07 PM UTC-6, Jens Alfke wrote:
>
> Oh, actually it’s pretty easy to do what you want. The implementation of
> -[CBLDatabase saveAllModels:] is very simple and uses only public API:
>
> - (BOOL) saveAllModels: (NSError**)outError {
> NSArray* unsaved = self.unsavedModels;
> if (unsaved.count == 0)
> return YES;
> return [CBLModel saveModels: unsaved error: outError];
> }
>
> So you can easily write your own method that does the same, except
> filtering the `unsaved` array to remove the model(s) you don’t want to save.
>
> —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/60c1d136-e6cc-46b7-bee9-ee857762900e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.