NSObject(FMDatabasePoolDelegate)
@interface NSObject (FMDatabasePoolDelegate)
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:(nonnull FMDatabasePool *)pool shouldAddDatabaseToPool:(nonnull FMDatabase *)database;
Swift
func databasePool(_ pool: FMDatabasePool, shouldAddDatabaseToPool database: FMDatabase) -> 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:(nonnull FMDatabasePool *)pool didAddDatabase:(nonnull FMDatabase *)database;
Swift
func databasePool(_ pool: FMDatabasePool, didAdd database: FMDatabase)
Parameters
pool
The
FMDatabasePool
object.database
The
FMDatabase
object.