motion-yapper 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +3 -1
- data/lib/yapper.rb +3 -3
- data/lib/yapper/db.rb +61 -4
- data/lib/yapper/document/persistence.rb +4 -0
- data/lib/yapper/document/selection.rb +13 -0
- data/lib/yapper/version.rb +1 -1
- data/motion-yapper.gemspec +1 -1
- data/spec/integration/search_spec.rb +111 -0
- data/vendor/Podfile.lock +11 -7
- data/vendor/YapDatabaseRubyMotion/YapDatabaseRubyMotion.bridgesupport +16 -2
- data/vendor/YapDatabaseRubyMotion/YapDatabaseRubyMotion.h +10 -7
- data/vendor/YapDatabaseRubyMotion/YapDatabaseRubyMotion.m +20 -2
- metadata +19 -297
- data/vendor/Pods/.build/libPods-CocoaLumberjack.a +0 -0
- data/vendor/Pods/.build/libPods-NSData+MD5Digest.a +0 -0
- data/vendor/Pods/.build/libPods-YapDatabase.a +0 -0
- data/vendor/Pods/.build/libPods.a +0 -0
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDASLLogger.h +0 -41
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDAbstractDatabaseLogger.h +0 -102
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDContextFilterLogFormatter.h +0 -63
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDDispatchQueueLogFormatter.h +0 -128
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDFileLogger.h +0 -369
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDLog+LOGV.h +0 -99
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDLog.h +0 -634
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDMultiFormatter.h +0 -30
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDTTYLogger.h +0 -181
- data/vendor/Pods/BuildHeaders/NSData+MD5Digest/NSData+MD5Digest.h +0 -18
- data/vendor/Pods/BuildHeaders/YapDatabase/NSDictionary+YapDatabase.h +0 -8
- data/vendor/Pods/BuildHeaders/YapDatabase/YapCache.h +0 -91
- data/vendor/Pods/BuildHeaders/YapDatabase/YapCollectionKey.h +0 -23
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabase.h +0 -547
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseConnection.h +0 -449
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseConnectionState.h +0 -29
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseDefaults.h +0 -37
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtension.h +0 -15
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtensionConnection.h +0 -11
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtensionPrivate.h +0 -444
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtensionTransaction.h +0 -11
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredView.h +0 -81
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewConnection.h +0 -12
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewPrivate.h +0 -17
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewTransaction.h +0 -39
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewTypes.h +0 -32
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearch.h +0 -89
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchConnection.h +0 -32
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchPrivate.h +0 -77
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchSnippetOptions.h +0 -79
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchTransaction.h +0 -68
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseLogging.h +0 -158
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseManager.h +0 -17
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabasePrivate.h +0 -446
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseQuery.h +0 -42
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationship.h +0 -35
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipConnection.h +0 -29
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipEdge.h +0 -163
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipEdgePrivate.h +0 -79
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipNode.h +0 -99
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipOptions.h +0 -59
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipPrivate.h +0 -125
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipTransaction.h +0 -384
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndex.h +0 -149
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexConnection.h +0 -33
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexPrivate.h +0 -83
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexSetup.h +0 -33
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexSetupPrivate.h +0 -18
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexTransaction.h +0 -58
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseStatement.h +0 -13
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseString.h +0 -121
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseTransaction.h +0 -651
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseView.h +0 -127
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewChange.h +0 -272
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewChangePrivate.h +0 -94
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewConnection.h +0 -116
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewMappings.h +0 -842
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewMappingsPrivate.h +0 -72
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewOptions.h +0 -63
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewPage.h +0 -36
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewPageMetadata.h +0 -27
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewPrivate.h +0 -170
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewRangeOptions.h +0 -330
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewRangeOptionsPrivate.h +0 -17
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewTransaction.h +0 -498
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewTypes.h +0 -99
- data/vendor/Pods/BuildHeaders/YapDatabase/YapMemoryTable.h +0 -74
- data/vendor/Pods/BuildHeaders/YapDatabase/YapNull.h +0 -17
- data/vendor/Pods/BuildHeaders/YapDatabase/YapSet.h +0 -41
- data/vendor/Pods/BuildHeaders/YapDatabase/YapTouch.h +0 -15
- data/vendor/Pods/CocoaLumberjack/LICENSE.txt +0 -18
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDASLLogger.h +0 -41
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDASLLogger.m +0 -100
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDAbstractDatabaseLogger.h +0 -102
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDAbstractDatabaseLogger.m +0 -727
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDFileLogger.h +0 -369
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDFileLogger.m +0 -1539
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDLog+LOGV.h +0 -99
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDLog.h +0 -634
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDLog.m +0 -1208
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDTTYLogger.h +0 -181
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDTTYLogger.m +0 -1520
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDContextFilterLogFormatter.h +0 -63
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDContextFilterLogFormatter.m +0 -191
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDDispatchQueueLogFormatter.h +0 -128
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDDispatchQueueLogFormatter.m +0 -253
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDMultiFormatter.h +0 -30
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDMultiFormatter.m +0 -127
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/README.txt +0 -7
- data/vendor/Pods/CocoaLumberjack/README.markdown +0 -74
- data/vendor/Pods/Headers/CocoaLumberjack/DDASLLogger.h +0 -41
- data/vendor/Pods/Headers/CocoaLumberjack/DDAbstractDatabaseLogger.h +0 -102
- data/vendor/Pods/Headers/CocoaLumberjack/DDContextFilterLogFormatter.h +0 -63
- data/vendor/Pods/Headers/CocoaLumberjack/DDDispatchQueueLogFormatter.h +0 -128
- data/vendor/Pods/Headers/CocoaLumberjack/DDFileLogger.h +0 -369
- data/vendor/Pods/Headers/CocoaLumberjack/DDLog+LOGV.h +0 -99
- data/vendor/Pods/Headers/CocoaLumberjack/DDLog.h +0 -634
- data/vendor/Pods/Headers/CocoaLumberjack/DDMultiFormatter.h +0 -30
- data/vendor/Pods/Headers/CocoaLumberjack/DDTTYLogger.h +0 -181
- data/vendor/Pods/Headers/NSData+MD5Digest/NSData+MD5Digest.h +0 -18
- data/vendor/Pods/Headers/YapDatabase/YapCollectionKey.h +0 -23
- data/vendor/Pods/Headers/YapDatabase/YapDatabase.h +0 -547
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseConnection.h +0 -449
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseExtension.h +0 -15
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseExtensionConnection.h +0 -11
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseExtensionTransaction.h +0 -11
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredView.h +0 -81
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewConnection.h +0 -12
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewTransaction.h +0 -39
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewTypes.h +0 -32
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearch.h +0 -89
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearchConnection.h +0 -32
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearchSnippetOptions.h +0 -79
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearchTransaction.h +0 -68
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseQuery.h +0 -42
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationship.h +0 -35
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipConnection.h +0 -29
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipEdge.h +0 -163
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipNode.h +0 -99
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipOptions.h +0 -59
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipTransaction.h +0 -384
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndex.h +0 -149
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndexConnection.h +0 -33
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndexSetup.h +0 -33
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndexTransaction.h +0 -58
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseTransaction.h +0 -651
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseView.h +0 -127
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewChange.h +0 -272
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewConnection.h +0 -116
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewMappings.h +0 -842
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewOptions.h +0 -63
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewRangeOptions.h +0 -330
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewTransaction.h +0 -498
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewTypes.h +0 -99
- data/vendor/Pods/Headers/YapDatabase/YapSet.h +0 -41
- data/vendor/Pods/Headers/____Pods-CocoaLumberjack-prefix.h +0 -7
- data/vendor/Pods/Headers/____Pods-NSData+MD5Digest-prefix.h +0 -5
- data/vendor/Pods/Headers/____Pods-YapDatabase-prefix.h +0 -5
- data/vendor/Pods/Headers/____Pods-environment.h +0 -38
- data/vendor/Pods/Manifest.lock +0 -22
- data/vendor/Pods/NSData+MD5Digest/NSData+MD5Digest/NSData+MD5Digest.h +0 -18
- data/vendor/Pods/NSData+MD5Digest/NSData+MD5Digest/NSData+MD5Digest.m +0 -39
- data/vendor/Pods/NSData+MD5Digest/README.md +0 -11
- data/vendor/Pods/Pods-CocoaLumberjack-Private.xcconfig +0 -5
- data/vendor/Pods/Pods-CocoaLumberjack-dummy.m +0 -5
- data/vendor/Pods/Pods-CocoaLumberjack-prefix.pch +0 -7
- data/vendor/Pods/Pods-CocoaLumberjack.xcconfig +0 -0
- data/vendor/Pods/Pods-NSData+MD5Digest-Private.xcconfig +0 -5
- data/vendor/Pods/Pods-NSData+MD5Digest-dummy.m +0 -5
- data/vendor/Pods/Pods-NSData+MD5Digest-prefix.pch +0 -5
- data/vendor/Pods/Pods-NSData+MD5Digest.xcconfig +0 -0
- data/vendor/Pods/Pods-YapDatabase-Private.xcconfig +0 -5
- data/vendor/Pods/Pods-YapDatabase-dummy.m +0 -5
- data/vendor/Pods/Pods-YapDatabase-prefix.pch +0 -5
- data/vendor/Pods/Pods-YapDatabase.xcconfig +0 -1
- data/vendor/Pods/Pods-acknowledgements.markdown +0 -59
- data/vendor/Pods/Pods-acknowledgements.plist +0 -97
- data/vendor/Pods/Pods-dummy.m +0 -5
- data/vendor/Pods/Pods-environment.h +0 -38
- data/vendor/Pods/Pods-resources.sh +0 -68
- data/vendor/Pods/Pods.xcconfig +0 -5
- data/vendor/Pods/Pods.xcodeproj/project.pbxproj +0 -4807
- data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods-CocoaLumberjack.xcscheme +0 -59
- data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods-NSData+MD5Digest.xcscheme +0 -59
- data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods-YapDatabase.xcscheme +0 -59
- data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods.xcscheme +0 -59
- data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/xcschememanagement.plist +0 -31
- data/vendor/Pods/YapDatabase/LICENSE.txt +0 -18
- data/vendor/Pods/YapDatabase/README.md +0 -32
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/Internal/YapDatabaseFilteredViewPrivate.h +0 -17
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredView.h +0 -81
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredView.m +0 -159
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewConnection.h +0 -12
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewConnection.m +0 -41
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTransaction.h +0 -39
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTransaction.m +0 -1235
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTypes.h +0 -32
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/Internal/YapDatabaseFullTextSearchPrivate.h +0 -77
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearch.h +0 -89
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearch.m +0 -146
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchConnection.h +0 -32
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchConnection.m +0 -298
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchSnippetOptions.h +0 -79
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchSnippetOptions.m +0 -95
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchTransaction.h +0 -68
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchTransaction.m +0 -1403
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/Internal/YapDatabaseExtensionPrivate.h +0 -444
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtension.h +0 -15
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtension.m +0 -83
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionConnection.h +0 -11
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionConnection.m +0 -46
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionTransaction.h +0 -11
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionTransaction.m +0 -204
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/Internal/YapDatabaseRelationshipEdgePrivate.h +0 -79
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/Internal/YapDatabaseRelationshipPrivate.h +0 -125
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationship.h +0 -35
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationship.m +0 -129
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipConnection.h +0 -29
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipConnection.m +0 -802
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipEdge.h +0 -163
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipEdge.m +0 -408
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipNode.h +0 -99
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipOptions.h +0 -59
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipOptions.m +0 -29
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipTransaction.h +0 -384
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipTransaction.m +0 -5254
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/Internal/YapDatabaseSecondaryIndexPrivate.h +0 -83
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/Internal/YapDatabaseSecondaryIndexSetupPrivate.h +0 -18
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndex.h +0 -149
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndex.m +0 -161
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexConnection.h +0 -33
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexConnection.m +0 -331
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexSetup.h +0 -33
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexSetup.m +0 -245
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexTransaction.h +0 -58
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexTransaction.m +0 -1269
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewChangePrivate.h +0 -94
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewMappingsPrivate.h +0 -72
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPage.h +0 -36
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPage.mm +0 -296
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPageMetadata.h +0 -27
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPageMetadata.m +0 -28
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPrivate.h +0 -170
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewRangeOptionsPrivate.h +0 -17
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewChange.h +0 -272
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewChange.m +0 -2500
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewMappings.h +0 -842
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewMappings.m +0 -1714
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewRangeOptions.h +0 -330
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewRangeOptions.m +0 -141
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseView.h +0 -127
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseView.m +0 -194
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewConnection.h +0 -116
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewConnection.m +0 -888
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewOptions.h +0 -63
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewOptions.m +0 -27
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewTransaction.h +0 -498
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewTransaction.m +0 -4986
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewTypes.h +0 -99
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/NSDictionary+YapDatabase.h +0 -8
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/NSDictionary+YapDatabase.m +0 -19
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapCache.h +0 -91
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapCache.m +0 -465
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseConnectionState.h +0 -29
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseConnectionState.m +0 -48
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseDefaults.h +0 -37
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseDefaults.m +0 -83
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseLogging.h +0 -158
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseLogging.m +0 -73
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseManager.h +0 -17
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseManager.m +0 -56
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabasePrivate.h +0 -446
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseStatement.h +0 -13
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseStatement.m +0 -26
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseString.h +0 -121
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapMemoryTable.h +0 -74
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapMemoryTable.m +0 -603
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapNull.h +0 -17
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapNull.m +0 -35
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapTouch.h +0 -15
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapTouch.m +0 -31
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapCollectionKey.h +0 -23
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapCollectionKey.m +0 -199
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapDatabaseQuery.h +0 -42
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapDatabaseQuery.m +0 -96
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapSet.h +0 -41
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapSet.m +0 -82
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabase.h +0 -547
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabase.m +0 -2013
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseConnection.h +0 -449
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseConnection.m +0 -4046
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseTransaction.h +0 -651
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseTransaction.m +0 -5602
- data/vendor/Pods/build-iPhoneSimulator/Pods.bridgesupport +0 -3172
- data/vendor/Pods/build-iPhoneSimulator/libPods.a +0 -0
@@ -1,83 +0,0 @@
|
|
1
|
-
#import "YapDatabaseExtension.h"
|
2
|
-
#import "YapDatabaseExtensionPrivate.h"
|
3
|
-
|
4
|
-
|
5
|
-
@implementation YapDatabaseExtension
|
6
|
-
|
7
|
-
+ (void)dropTablesForRegisteredName:(NSString *)registeredName
|
8
|
-
withTransaction:(YapDatabaseReadWriteTransaction *)transaction
|
9
|
-
{
|
10
|
-
NSAssert(NO, @"Missing required method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
11
|
-
}
|
12
|
-
|
13
|
-
/**
|
14
|
-
* Subclasses may OPTIONALLY implement this method.
|
15
|
-
*
|
16
|
-
* If an extension class is renamed this method should be used to properly transition.
|
17
|
-
* The extension architecture will verify that a re-registered extension is using the same
|
18
|
-
* extension class that it was previously using. If the class names differ, then the extension architecture
|
19
|
-
* will automatically try to unregister the previous extension using the previous extension class.
|
20
|
-
*
|
21
|
-
* That is, it will attempt to invoke [PreviousExtensionClass dropTablesForRegisteredName: withTransaction:].
|
22
|
-
* Of course this won't work because the PreviousExtensionClass no longer exists.
|
23
|
-
* So the end result is that you will likely see the database spit out a warning like this:
|
24
|
-
*
|
25
|
-
* - Dropping tables for previously registered extension with name(order),
|
26
|
-
* class(YapDatabaseQuack) for new class(YapDatabaseDuck)
|
27
|
-
* - Unable to drop tables for previously registered extension with name(order),
|
28
|
-
* unknown class(YapDatabaseQuack)
|
29
|
-
*
|
30
|
-
* This method helps the extension architecture to understand what's happening, and it won't spit out any warnings.
|
31
|
-
*
|
32
|
-
* The default implementation returns nil.
|
33
|
-
**/
|
34
|
-
+ (NSArray *)previousClassNames
|
35
|
-
{
|
36
|
-
return nil;
|
37
|
-
}
|
38
|
-
|
39
|
-
/**
|
40
|
-
* Read-only property.
|
41
|
-
* Automatically set by YapDatabase instance during the registration process.
|
42
|
-
**/
|
43
|
-
@synthesize registeredName;
|
44
|
-
|
45
|
-
/**
|
46
|
-
* Subclasses must implement this method.
|
47
|
-
* This method is called during the view registration process to enusre the extension supports the database type.
|
48
|
-
*
|
49
|
-
* Return YES if the class/instance supports the database configuration.
|
50
|
-
**/
|
51
|
-
- (BOOL)supportsDatabase:(YapDatabase *)database withRegisteredExtensions:(NSDictionary *)registeredExtensions
|
52
|
-
{
|
53
|
-
NSAssert(NO, @"Missing required method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
54
|
-
return NO;
|
55
|
-
}
|
56
|
-
|
57
|
-
/**
|
58
|
-
* Subclasses MUST implement this method IF they have dependencies.
|
59
|
-
* This method is called during the view registration simply to record the needed dependencies.
|
60
|
-
* If any of the dependencies are unregistered, this extension will automatically be unregistered.
|
61
|
-
*
|
62
|
-
* Return a set of NSString objects, representing the name(s) of registered extensions
|
63
|
-
* that this extension is dependent upon.
|
64
|
-
*
|
65
|
-
* If there are no dependencies, return nil (or an empty set).
|
66
|
-
* The default implementation returns nil.
|
67
|
-
**/
|
68
|
-
- (NSSet *)dependencies
|
69
|
-
{
|
70
|
-
return nil;
|
71
|
-
}
|
72
|
-
|
73
|
-
/**
|
74
|
-
* Subclasses MUST implement this method.
|
75
|
-
* Returns a proper instance of the YapDatabaseExtensionConnection subclass.
|
76
|
-
**/
|
77
|
-
- (YapDatabaseExtensionConnection *)newConnection:(YapDatabaseConnection *)databaseConnection
|
78
|
-
{
|
79
|
-
NSAssert(NO, @"Missing required method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
80
|
-
return nil;
|
81
|
-
}
|
82
|
-
|
83
|
-
@end
|
data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionConnection.m
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
#import "YapDatabaseExtensionConnection.h"
|
2
|
-
#import "YapDatabaseExtensionPrivate.h"
|
3
|
-
|
4
|
-
|
5
|
-
@implementation YapDatabaseExtensionConnection
|
6
|
-
|
7
|
-
- (YapDatabaseExtension *)extension
|
8
|
-
{
|
9
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
10
|
-
return nil;
|
11
|
-
}
|
12
|
-
|
13
|
-
- (id)newReadTransaction:(YapDatabaseReadTransaction *)databaseTransaction
|
14
|
-
{
|
15
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
16
|
-
return nil;
|
17
|
-
}
|
18
|
-
|
19
|
-
- (id)newReadWriteTransaction:(YapDatabaseReadWriteTransaction *)databaseTransaction
|
20
|
-
{
|
21
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
22
|
-
return nil;
|
23
|
-
}
|
24
|
-
|
25
|
-
- (void)_flushMemoryWithFlags:(YapDatabaseConnectionFlushMemoryFlags)flags
|
26
|
-
{
|
27
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
28
|
-
}
|
29
|
-
|
30
|
-
- (void)getInternalChangeset:(NSMutableDictionary **)internalPtr
|
31
|
-
externalChangeset:(NSMutableDictionary **)externalPtr
|
32
|
-
hasDiskChanges:(BOOL *)hasDiskChangesPtr
|
33
|
-
{
|
34
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
35
|
-
|
36
|
-
*internalPtr = nil;
|
37
|
-
*externalPtr = nil;
|
38
|
-
*hasDiskChangesPtr = NO;
|
39
|
-
}
|
40
|
-
|
41
|
-
- (void)processChangeset:(NSDictionary *)changeset
|
42
|
-
{
|
43
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
44
|
-
}
|
45
|
-
|
46
|
-
@end
|
data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionTransaction.m
DELETED
@@ -1,204 +0,0 @@
|
|
1
|
-
#import "YapDatabaseExtensionTransaction.h"
|
2
|
-
#import "YapDatabaseExtensionPrivate.h"
|
3
|
-
#import "YapDatabasePrivate.h"
|
4
|
-
#import "YapDatabaseString.h"
|
5
|
-
#import "YapDatabaseLogging.h"
|
6
|
-
|
7
|
-
#if ! __has_feature(objc_arc)
|
8
|
-
#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
|
9
|
-
#endif
|
10
|
-
|
11
|
-
/**
|
12
|
-
* Define log level for this file: OFF, ERROR, WARN, INFO, VERBOSE
|
13
|
-
* See YapDatabaseLogging.h for more information.
|
14
|
-
**/
|
15
|
-
#if DEBUG
|
16
|
-
static const int ydbLogLevel = YDB_LOG_LEVEL_WARN;
|
17
|
-
#else
|
18
|
-
static const int ydbLogLevel = YDB_LOG_LEVEL_WARN;
|
19
|
-
#endif
|
20
|
-
|
21
|
-
|
22
|
-
@implementation YapDatabaseExtensionTransaction
|
23
|
-
|
24
|
-
/**
|
25
|
-
* See YapDatabaseExtensionPrivate for discussion of this method.
|
26
|
-
**/
|
27
|
-
- (BOOL)createIfNeeded
|
28
|
-
{
|
29
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
30
|
-
return NO;
|
31
|
-
}
|
32
|
-
|
33
|
-
/**
|
34
|
-
* See YapDatabaseExtensionPrivate for discussion of this method.
|
35
|
-
**/
|
36
|
-
- (BOOL)prepareIfNeeded
|
37
|
-
{
|
38
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
39
|
-
return NO;
|
40
|
-
}
|
41
|
-
|
42
|
-
/**
|
43
|
-
* Subclasses may OPTIONALLY implement this method.
|
44
|
-
* This method is only called if within a readwrite transaction.
|
45
|
-
*
|
46
|
-
* Subclasses should ONLY implement this method if they need to make changes to the 'database' table.
|
47
|
-
* That is, the main collection/key/value table that directly stores the user's objects.
|
48
|
-
*
|
49
|
-
* Return NO if the extension does not directly modify the main database table.
|
50
|
-
* Return YES if the extension does modify the main database table,
|
51
|
-
* regardless of whether it made changes during this invocation.
|
52
|
-
*
|
53
|
-
* This method may be invoked several times in a row.
|
54
|
-
**/
|
55
|
-
- (BOOL)flushPendingChangesToMainDatabaseTable
|
56
|
-
{
|
57
|
-
return NO;
|
58
|
-
}
|
59
|
-
|
60
|
-
/**
|
61
|
-
* This method is called if within a readwrite transaction.
|
62
|
-
* This method is optional.
|
63
|
-
**/
|
64
|
-
- (void)prepareChangeset
|
65
|
-
{
|
66
|
-
// Subclasses may optionally override this method to perform any "cleanup" before the changesets are requested.
|
67
|
-
// Remember, the changesets are requested before the commitTransaction method is invoked.
|
68
|
-
}
|
69
|
-
|
70
|
-
/**
|
71
|
-
* This method is only called if within a readwrite transaction.
|
72
|
-
**/
|
73
|
-
- (void)commitTransaction
|
74
|
-
{
|
75
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
76
|
-
|
77
|
-
// Subclasses should include the code similar to the following at the end of their implementation:
|
78
|
-
//
|
79
|
-
// viewConnection = nil;
|
80
|
-
// databaseTransaction = nil;
|
81
|
-
}
|
82
|
-
|
83
|
-
/**
|
84
|
-
* This method is only called if within a readwrite transaction.
|
85
|
-
**/
|
86
|
-
- (void)rollbackTransaction
|
87
|
-
{
|
88
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
89
|
-
|
90
|
-
// Subclasses should include the code similar to the following at the end of their implementation:
|
91
|
-
//
|
92
|
-
// viewConnection = nil;
|
93
|
-
// databaseTransaction = nil;
|
94
|
-
}
|
95
|
-
|
96
|
-
- (YapDatabaseReadTransaction *)databaseTransaction
|
97
|
-
{
|
98
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
99
|
-
return nil;
|
100
|
-
}
|
101
|
-
|
102
|
-
- (YapDatabaseExtensionConnection *)extensionConnection
|
103
|
-
{
|
104
|
-
NSAssert(NO, @"Missing required override method(%@) in class(%@)", NSStringFromSelector(_cmd), [self class]);
|
105
|
-
return nil;
|
106
|
-
}
|
107
|
-
|
108
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
109
|
-
#pragma mark Persistent Values
|
110
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
111
|
-
|
112
|
-
/**
|
113
|
-
* The following method are convenience methods for getting and setting persistent values for the extension.
|
114
|
-
* The persistent values are stored in the yap2 table, which is specifically designed for this use.
|
115
|
-
**/
|
116
|
-
|
117
|
-
- (BOOL)getBoolValue:(BOOL *)valuePtr forExtensionKey:(NSString *)key
|
118
|
-
{
|
119
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
120
|
-
return [[self databaseTransaction] getBoolValue:valuePtr forKey:key extension:registeredName];
|
121
|
-
}
|
122
|
-
|
123
|
-
- (BOOL)boolValueForExtensionKey:(NSString *)key
|
124
|
-
{
|
125
|
-
BOOL value = NO;
|
126
|
-
[self getBoolValue:&value forExtensionKey:key];
|
127
|
-
return value;
|
128
|
-
}
|
129
|
-
|
130
|
-
- (void)setBoolValue:(BOOL)value forExtensionKey:(NSString *)key
|
131
|
-
{
|
132
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
133
|
-
[[self databaseTransaction] setBoolValue:value forKey:key extension:registeredName];
|
134
|
-
}
|
135
|
-
|
136
|
-
- (BOOL)getIntValue:(int *)valuePtr forExtensionKey:(NSString *)key
|
137
|
-
{
|
138
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
139
|
-
return [[self databaseTransaction] getIntValue:valuePtr forKey:key extension:registeredName];
|
140
|
-
}
|
141
|
-
|
142
|
-
- (int)intValueForExtensionKey:(NSString *)key
|
143
|
-
{
|
144
|
-
int value = 0;
|
145
|
-
[self getIntValue:&value forExtensionKey:key];
|
146
|
-
return value;
|
147
|
-
}
|
148
|
-
|
149
|
-
- (void)setIntValue:(int)value forExtensionKey:(NSString *)key
|
150
|
-
{
|
151
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
152
|
-
[[self databaseTransaction] setIntValue:value forKey:key extension:registeredName];
|
153
|
-
}
|
154
|
-
|
155
|
-
- (BOOL)getDoubleValue:(double *)valuePtr forExtensionKey:(NSString *)key
|
156
|
-
{
|
157
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
158
|
-
return [[self databaseTransaction] getDoubleValue:valuePtr forKey:key extension:registeredName];
|
159
|
-
}
|
160
|
-
|
161
|
-
- (double)doubleValueForExtensionKey:(NSString *)key
|
162
|
-
{
|
163
|
-
double value = 0.0;
|
164
|
-
[self getDoubleValue:&value forExtensionKey:key];
|
165
|
-
return value;
|
166
|
-
}
|
167
|
-
|
168
|
-
- (void)setDoubleValue:(double)value forExtensionKey:(NSString *)key
|
169
|
-
{
|
170
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
171
|
-
[[self databaseTransaction] setDoubleValue:value forKey:key extension:registeredName];
|
172
|
-
}
|
173
|
-
|
174
|
-
- (NSString *)stringValueForExtensionKey:(NSString *)key
|
175
|
-
{
|
176
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
177
|
-
return [[self databaseTransaction] stringValueForKey:key extension:registeredName];
|
178
|
-
}
|
179
|
-
|
180
|
-
- (void)setStringValue:(NSString *)value forExtensionKey:(NSString *)key
|
181
|
-
{
|
182
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
183
|
-
[[self databaseTransaction] setStringValue:value forKey:key extension:registeredName];
|
184
|
-
}
|
185
|
-
|
186
|
-
- (NSData *)dataValueForExtensionKey:(NSString *)key
|
187
|
-
{
|
188
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
189
|
-
return [[self databaseTransaction] dataValueForKey:key extension:registeredName];
|
190
|
-
}
|
191
|
-
|
192
|
-
- (void)setDataValue:(NSData *)value forExtensionKey:(NSString *)key
|
193
|
-
{
|
194
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
195
|
-
[[self databaseTransaction] setDataValue:value forKey:key extension:registeredName];
|
196
|
-
}
|
197
|
-
|
198
|
-
- (void)removeValueForExtensionKey:(NSString *)key
|
199
|
-
{
|
200
|
-
NSString *registeredName = [[[self extensionConnection] extension] registeredName];
|
201
|
-
[[self databaseTransaction] removeValueForKey:key extension:registeredName];
|
202
|
-
}
|
203
|
-
|
204
|
-
@end
|
@@ -1,79 +0,0 @@
|
|
1
|
-
#import "YapDatabaseRelationshipEdge.h"
|
2
|
-
|
3
|
-
enum {
|
4
|
-
YDB_EdgeActionNone = 0,
|
5
|
-
YDB_EdgeActionInsert = 1,
|
6
|
-
YDB_EdgeActionUpdate = 2,
|
7
|
-
YDB_EdgeActionDelete = 3
|
8
|
-
};
|
9
|
-
|
10
|
-
enum {
|
11
|
-
YDB_FlagsNone = 0,
|
12
|
-
YDB_FlagsSourceDeleted = 1 << 0,
|
13
|
-
YDB_FlagsDestinationDeleted = 1 << 1,
|
14
|
-
YDB_FlagsBadSource = 1 << 2,
|
15
|
-
YDB_FlagsBadDestination = 1 << 3,
|
16
|
-
YDB_FlagsHasSourceRowid = 1 << 4, // If set, sourceRowid lookup not needed
|
17
|
-
YDB_FlagsHasDestinationRowid = 1 << 5, // If set, destinationRowid lookup not needed
|
18
|
-
YDB_FlagsHasEdgeRowid = 1 << 6,
|
19
|
-
YDB_FlagsNotInDatabase = 1 << 7,
|
20
|
-
};
|
21
|
-
|
22
|
-
|
23
|
-
@interface YapDatabaseRelationshipEdge () {
|
24
|
-
@public
|
25
|
-
|
26
|
-
// Public properties.
|
27
|
-
// Internal code should access these directly.
|
28
|
-
|
29
|
-
NSString *name;
|
30
|
-
|
31
|
-
NSString *sourceKey;
|
32
|
-
NSString *sourceCollection;
|
33
|
-
|
34
|
-
NSString *destinationKey;
|
35
|
-
NSString *destinationCollection;
|
36
|
-
|
37
|
-
NSString *destinationFilePath;
|
38
|
-
|
39
|
-
YDB_NodeDeleteRules nodeDeleteRules;
|
40
|
-
|
41
|
-
BOOL isManualEdge;
|
42
|
-
|
43
|
-
// Internal properties.
|
44
|
-
// Internal code must access these directly.
|
45
|
-
|
46
|
-
int64_t edgeRowid;
|
47
|
-
int64_t sourceRowid;
|
48
|
-
int64_t destinationRowid;
|
49
|
-
|
50
|
-
int edgeAction;
|
51
|
-
int flags;
|
52
|
-
}
|
53
|
-
|
54
|
-
// Init directly from database row
|
55
|
-
- (id)initWithRowid:(int64_t)rowid
|
56
|
-
name:(NSString *)name
|
57
|
-
src:(int64_t)src
|
58
|
-
dst:(int64_t)dst
|
59
|
-
dstFilePath:(NSString *)dstFilePath
|
60
|
-
rules:(int)rules
|
61
|
-
manual:(BOOL)isManual;
|
62
|
-
|
63
|
-
// Copy for YapDatabaseRelationshipNode protocol
|
64
|
-
- (id)copyWithSourceKey:(NSString *)newSrcKey collection:(NSString *)newSrcCollection rowid:(int64_t)newSrcRowid;
|
65
|
-
|
66
|
-
/**
|
67
|
-
* Compares two manual edges to see if they represent the same relationship.
|
68
|
-
* That is, if both edges are manual edges, and the following are equal:
|
69
|
-
*
|
70
|
-
* - name
|
71
|
-
* - sourceKey / sourceCollection
|
72
|
-
* - destinationKey / destinationCollection
|
73
|
-
* - destinationFilePath
|
74
|
-
*
|
75
|
-
* The nodeDeleteRules do NOT need to match.
|
76
|
-
**/
|
77
|
-
- (BOOL)matchesManualEdge:(YapDatabaseRelationshipEdge *)edge;
|
78
|
-
|
79
|
-
@end
|
@@ -1,125 +0,0 @@
|
|
1
|
-
#import <Foundation/Foundation.h>
|
2
|
-
|
3
|
-
#import "YapDatabase.h"
|
4
|
-
#import "YapDatabaseConnection.h"
|
5
|
-
#import "YapDatabaseTransaction.h"
|
6
|
-
|
7
|
-
#import "YapDatabaseRelationship.h"
|
8
|
-
#import "YapDatabaseRelationshipOptions.h"
|
9
|
-
#import "YapDatabaseRelationshipConnection.h"
|
10
|
-
#import "YapDatabaseRelationshipTransaction.h"
|
11
|
-
|
12
|
-
#import "YapDatabasePrivate.h"
|
13
|
-
#import "YapDatabaseExtensionPrivate.h"
|
14
|
-
|
15
|
-
/**
|
16
|
-
* This version number is stored in the yap2 table.
|
17
|
-
* If there is a major re-write to this class, then the version number will be incremented,
|
18
|
-
* and the class can automatically rebuild the table as needed.
|
19
|
-
**/
|
20
|
-
#define YAP_DATABASE_RELATIONSHIP_CLASS_VERSION 3
|
21
|
-
|
22
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
23
|
-
#pragma mark -
|
24
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
25
|
-
|
26
|
-
@interface YapDatabaseRelationship () {
|
27
|
-
@public
|
28
|
-
|
29
|
-
int version;
|
30
|
-
YapDatabaseRelationshipOptions *options;
|
31
|
-
}
|
32
|
-
|
33
|
-
- (NSString *)tableName;
|
34
|
-
|
35
|
-
/**
|
36
|
-
* The dispatch queue for performing file deletion operations.
|
37
|
-
* Note: This method is not thread-safe, as it expects to only be invoked from within a read-write transaction.
|
38
|
-
**/
|
39
|
-
- (dispatch_queue_t)fileManagerQueue;
|
40
|
-
|
41
|
-
@end
|
42
|
-
|
43
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
44
|
-
#pragma mark -
|
45
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
46
|
-
|
47
|
-
@interface YapDatabaseRelationshipOptions () {
|
48
|
-
@public
|
49
|
-
|
50
|
-
BOOL disableYapDatabaseRelationshipNodeProtocol;
|
51
|
-
NSSet *allowedCollections;
|
52
|
-
}
|
53
|
-
|
54
|
-
@end
|
55
|
-
|
56
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
57
|
-
#pragma mark -
|
58
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
59
|
-
|
60
|
-
@interface YapDatabaseRelationshipConnection () {
|
61
|
-
@public
|
62
|
-
|
63
|
-
__strong YapDatabaseRelationship *relationship;
|
64
|
-
__unsafe_unretained YapDatabaseConnection *databaseConnection;
|
65
|
-
|
66
|
-
NSMutableDictionary *protocolChanges; // key:(NSNumber *)srcRowidNumber, value:(NSMutableArray *)edges
|
67
|
-
NSMutableDictionary *manualChanges; // key:(NSString *)edgeName, value:(NSMutableArray *)edges
|
68
|
-
|
69
|
-
NSMutableSet *inserted; // contains:(NSNumber *)rowidNumber
|
70
|
-
|
71
|
-
NSMutableArray *deletedOrder; // contains:(NSNumber *)rowidNumber
|
72
|
-
NSMutableDictionary *deletedInfo; // key:(NSNumber *)rowidNumber, value:(YapCollectionKey *)collectionKey
|
73
|
-
|
74
|
-
NSMutableSet *filesToDelete;
|
75
|
-
|
76
|
-
// NSMutableSet *mutatedSomething;
|
77
|
-
}
|
78
|
-
|
79
|
-
- (id)initWithRelationship:(YapDatabaseRelationship *)relationship databaseConnection:(YapDatabaseConnection *)dbc;
|
80
|
-
|
81
|
-
- (void)postRollbackCleanup;
|
82
|
-
- (void)postCommitCleanup;
|
83
|
-
|
84
|
-
- (sqlite3_stmt *)findManualEdgeStatement;
|
85
|
-
- (sqlite3_stmt *)insertEdgeStatement;
|
86
|
-
- (sqlite3_stmt *)updateEdgeStatement;
|
87
|
-
- (sqlite3_stmt *)deleteEdgeStatement;
|
88
|
-
- (sqlite3_stmt *)deleteEdgesWithNodeStatement;
|
89
|
-
- (sqlite3_stmt *)enumerateAllDstFilePathStatement;
|
90
|
-
- (sqlite3_stmt *)enumerateForSrcStatement;
|
91
|
-
- (sqlite3_stmt *)enumerateForDstStatement;
|
92
|
-
- (sqlite3_stmt *)enumerateForSrcNameStatement;
|
93
|
-
- (sqlite3_stmt *)enumerateForDstNameStatement;
|
94
|
-
- (sqlite3_stmt *)enumerateForNameStatement;
|
95
|
-
- (sqlite3_stmt *)enumerateForSrcDstStatement;
|
96
|
-
- (sqlite3_stmt *)enumerateForSrcDstNameStatement;
|
97
|
-
- (sqlite3_stmt *)countForSrcNameExcludingDstStatement;
|
98
|
-
- (sqlite3_stmt *)countForDstNameExcludingSrcStatement;
|
99
|
-
- (sqlite3_stmt *)countForNameStatement;
|
100
|
-
- (sqlite3_stmt *)countForSrcStatement;
|
101
|
-
- (sqlite3_stmt *)countForSrcNameStatement;
|
102
|
-
- (sqlite3_stmt *)countForDstStatement;
|
103
|
-
- (sqlite3_stmt *)countForDstNameStatement;
|
104
|
-
- (sqlite3_stmt *)countForSrcDstStatement;
|
105
|
-
- (sqlite3_stmt *)countForSrcDstNameStatement;
|
106
|
-
- (sqlite3_stmt *)removeAllStatement;
|
107
|
-
- (sqlite3_stmt *)removeAllProtocolStatement;
|
108
|
-
|
109
|
-
@end
|
110
|
-
|
111
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
112
|
-
#pragma mark -
|
113
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
114
|
-
|
115
|
-
@interface YapDatabaseRelationshipTransaction () {
|
116
|
-
@protected
|
117
|
-
|
118
|
-
__unsafe_unretained YapDatabaseRelationshipConnection *relationshipConnection;
|
119
|
-
__unsafe_unretained YapDatabaseReadTransaction *databaseTransaction;
|
120
|
-
}
|
121
|
-
|
122
|
-
- (id)initWithRelationshipConnection:(YapDatabaseRelationshipConnection *)relationshipConnection
|
123
|
-
databaseTransaction:(YapDatabaseReadTransaction *)databaseTransaction;
|
124
|
-
|
125
|
-
@end
|