Sha256: 3ab38f319f84fbd5399c74216d78fa9085597d1118c5a7a231561dbab2f8c70f
Contents?: true
Size: 1.77 KB
Versions: 1
Compression:
Stored size: 1.77 KB
Contents
#import "YapDatabaseExtension.h" #import "YapDatabaseExtensionPrivate.h" @implementation YapDatabaseExtension + (void)dropTablesForRegisteredName:(NSString *)registeredName withTransaction:(YapDatabaseReadWriteTransaction *)transaction { NSAssert(NO, @"Missing required method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]); } + (NSArray *)previousClassNames { return nil; } @synthesize registeredName; /** * Subclasses must implement this method. * This method is called during the view registration process to enusre the extension supports the database type. * * Return YES if the class/instance supports the database configuration. **/ - (BOOL)supportsDatabase:(YapDatabase *)database withRegisteredExtensions:(NSDictionary *)registeredExtensions { NSAssert(NO, @"Missing required method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]); return NO; } /** * Subclasses MUST implement this method IF they have dependencies. * This method is called during the view registration simply to record the needed dependencies. * If any of the dependencies are unregistered, this extension will automatically be unregistered. * * Return a set of NSString objects, representing the name(s) of registered extensions * that this extension is dependent upon. * * If there are no dependencies, return nil (or an empty set). * The default implementation returns nil. **/ - (NSSet *)dependencies { return nil; } /** * Subclasses MUST implement this method. * Returns a proper instance of the YapDatabaseExtensionConnection subclass. **/ - (YapDatabaseExtensionConnection *)newConnection:(YapDatabaseConnection *)databaseConnection { NSAssert(NO, @"Missing required method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]); return nil; } @end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-yapper-0.0.1 | vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtension.m |