Couchbase Lite
Objective-C API for iOS and Mac OS
Instance Methods | Properties | List of all members
CBLDatabase(CBLModel) Category Reference

CBLDatabase methods for use with CBLModel. More...

#import <CBLModel.h>

Instance Methods

(BOOL) - saveAllModels:
 Saves changes to all CBLModels associated with this database whose needsSave is true. More...
 
(BOOL) - autosaveAllModels:
 Immediately runs any pending autosaves for all CBLModels associated with this database. More...
 

Properties

NSArray * unsavedModels
 All CBLModels associated with this database whose needsSave is true. More...
 

Detailed Description

CBLDatabase methods for use with CBLModel.

Method Documentation

- (BOOL) saveAllModels: (NSError **)  outError

Saves changes to all CBLModels associated with this database whose needsSave is true.

Extends class CBLDatabase.

- (BOOL) autosaveAllModels: (NSError **)  outError

Immediately runs any pending autosaves for all CBLModels associated with this database.

(On iOS, this will automatically be called when the application is about to quit or go into the background. On Mac OS it is NOT called automatically.)

Extends class CBLDatabase.

Property Documentation

- (NSArray*) unsavedModels
readatomicassign

All CBLModels associated with this database whose needsSave is true.

Extends class CBLDatabase.


The documentation for this category was generated from the following file: