Couchbase Lite
Objective-C API for iOS and Mac OS
CBLDatabase(CBLModel) Category Reference

Detailed Description

CBLDatabase methods for use with CBLModel.

Instance Methods

() - CBLArrayOf
 All CBLModels associated with this database whose needsSave is true. More...
 
(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...
 

Method Documentation

◆ CBLArrayOf()

- CBLArrayOf (CBLModel *) 

All CBLModels associated with this database whose needsSave is true.

Extends class CBLDatabase.

◆ saveAllModels:()

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

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

Extends class CBLDatabase.

◆ autosaveAllModels:()

- (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.


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