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) -> BoolParameters
poolThe
FMDatabasePoolobject.databaseThe
FMDatabaseobject.Return Value
YESif it should add database to pool;NOif 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
poolThe
FMDatabasePoolobject.databaseThe
FMDatabaseobject.
View on GitHub
NSObject(FMDatabasePoolDelegate) Category Reference