NSObject(AWSFMDatabasePoolDelegate)
@interface NSObject (AWSFMDatabasePoolDelegate)
FMDatabasePool delegate category
This is a category that defines the protocol for the FMDatabasePool delegate
-
Asks the delegate whether database should be added to the pool.
Declaration
Objective-C
- (BOOL)databasePool:(AWSFMDatabasePool *)pool shouldAddDatabaseToPool:(AWSFMDatabase *)database;
Swift
func databasePool(_ pool: AWSFMDatabasePool!, shouldAddDatabaseToPool database: AWSFMDatabase!) -> Bool
Parameters
pool
The
FMDatabasePool
object.database
The
FMDatabase
object.Return Value
YES
if it should add database to pool;NO
if not. -
Tells the delegate that database was added to the pool.
Declaration
Objective-C
- (void)databasePool:(AWSFMDatabasePool *)pool didAddDatabase:(AWSFMDatabase *)database;
Swift
func databasePool(_ pool: AWSFMDatabasePool!, didAdd database: AWSFMDatabase!)
Parameters
pool
The
FMDatabasePool
object.database
The
FMDatabase
object.