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/EDFD0C3D-15B9-4CD5-A5BC-724F995B04EC%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.