OHMySQLContainer
Objective-C
@interface OHMySQLContainer : NSObject
Swift
class MySQLContainer : NSObject
Represents a main context and store coordinator.
-
Shared container
Declaration
Objective-C
@property (class, strong, readonly, nonnull) OHMySQLContainer *shared;
Swift
class var shared: MySQLContainer { get }
-
Single context that is used in the app. Context should be set by a user of this class.
Declaration
Objective-C
@property (nonatomic, strong, nullable) OHMySQLQueryContext *mainQueryContext;
Swift
var mainQueryContext: OHMySQLQueryContext? { get set }
-
Single store coordinator.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) OHMySQLStoreCoordinator *storeCoordinator;
Swift
var storeCoordinator: OHMySQLStoreCoordinator? { get }