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,29 +0,0 @@
|
|
1
|
-
#import <Foundation/Foundation.h>
|
2
|
-
#import "YapDatabaseConnection.h"
|
3
|
-
|
4
|
-
|
5
|
-
@interface YapDatabaseConnectionState : NSObject {
|
6
|
-
@private
|
7
|
-
dispatch_semaphore_t writeSemaphore;
|
8
|
-
|
9
|
-
@public
|
10
|
-
__weak YapDatabaseConnection *connection;
|
11
|
-
|
12
|
-
BOOL yapLevelSharedReadLock;
|
13
|
-
BOOL sqlLevelSharedReadLock;
|
14
|
-
BOOL longLivedReadTransaction;
|
15
|
-
|
16
|
-
BOOL yapLevelExclusiveWriteLock;
|
17
|
-
BOOL waitingForWriteLock;
|
18
|
-
|
19
|
-
uint64_t lastKnownSnapshot;
|
20
|
-
}
|
21
|
-
|
22
|
-
- (id)initWithConnection:(YapDatabaseConnection *)connection;
|
23
|
-
|
24
|
-
- (void)prepareWriteLock;
|
25
|
-
|
26
|
-
- (void)waitForWriteLock;
|
27
|
-
- (void)signalWriteLock;
|
28
|
-
|
29
|
-
@end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
#import "YapDatabaseConnectionState.h"
|
2
|
-
|
3
|
-
#if ! __has_feature(objc_arc)
|
4
|
-
#warning This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
|
5
|
-
#endif
|
6
|
-
|
7
|
-
|
8
|
-
@implementation YapDatabaseConnectionState
|
9
|
-
|
10
|
-
- (id)initWithConnection:(YapDatabaseConnection *)inConnection
|
11
|
-
{
|
12
|
-
if ((self = [super init]))
|
13
|
-
{
|
14
|
-
connection = inConnection;
|
15
|
-
}
|
16
|
-
return self;
|
17
|
-
}
|
18
|
-
|
19
|
-
- (void)dealloc
|
20
|
-
{
|
21
|
-
#if !OS_OBJECT_USE_OBJC
|
22
|
-
if (writeSemaphore)
|
23
|
-
dispatch_release(writeSemaphore);
|
24
|
-
#endif
|
25
|
-
}
|
26
|
-
|
27
|
-
- (void)prepareWriteLock;
|
28
|
-
{
|
29
|
-
if (writeSemaphore == NULL) {
|
30
|
-
writeSemaphore = dispatch_semaphore_create(0);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
- (void)waitForWriteLock
|
35
|
-
{
|
36
|
-
if (writeSemaphore) {
|
37
|
-
dispatch_semaphore_wait(writeSemaphore, DISPATCH_TIME_FOREVER);
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
- (void)signalWriteLock
|
42
|
-
{
|
43
|
-
if (writeSemaphore) {
|
44
|
-
dispatch_semaphore_signal(writeSemaphore);
|
45
|
-
}
|
46
|
-
}
|
47
|
-
|
48
|
-
@end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
#import <Foundation/Foundation.h>
|
2
|
-
|
3
|
-
#import "YapDatabaseConnection.h"
|
4
|
-
|
5
|
-
/**
|
6
|
-
* When a connection is created via [database newConnection] is will be handed one of these objects.
|
7
|
-
* Thus the connection will inherit its initial configuration via the defaults configured for the parent database.
|
8
|
-
*
|
9
|
-
* Of course, the connection may then override these default configuration values, and configure itself as needed.
|
10
|
-
*
|
11
|
-
* @see YapDatabase defaultObjectCacheEnabled
|
12
|
-
* @see YapDatabase defaultObjectCacheLimit
|
13
|
-
*
|
14
|
-
* @see YapDatabase defaultMetadataCacheEnabled
|
15
|
-
* @see YapDatabase defaultMetadataCacheLimit
|
16
|
-
*
|
17
|
-
* @see YapDatabase defaultObjectPolicy
|
18
|
-
* @see YapDatabase defaultMetadataPolicy
|
19
|
-
*
|
20
|
-
* @see YapDatabase defaultAutoFlushMemoryLevel
|
21
|
-
**/
|
22
|
-
@interface YapDatabaseDefaults : NSObject <NSCopying>
|
23
|
-
|
24
|
-
@property (nonatomic, assign, readwrite) BOOL objectCacheEnabled;
|
25
|
-
@property (nonatomic, assign, readwrite) NSUInteger objectCacheLimit;
|
26
|
-
|
27
|
-
@property (nonatomic, assign, readwrite) BOOL metadataCacheEnabled;
|
28
|
-
@property (nonatomic, assign, readwrite) NSUInteger metadataCacheLimit;
|
29
|
-
|
30
|
-
@property (nonatomic, assign, readwrite) YapDatabasePolicy objectPolicy;
|
31
|
-
@property (nonatomic, assign, readwrite) YapDatabasePolicy metadataPolicy;
|
32
|
-
|
33
|
-
#if TARGET_OS_IPHONE
|
34
|
-
@property (nonatomic, assign, readwrite) YapDatabaseConnectionFlushMemoryFlags autoFlushMemoryFlags;
|
35
|
-
#endif
|
36
|
-
|
37
|
-
@end
|
@@ -1,83 +0,0 @@
|
|
1
|
-
#import "YapDatabaseDefaults.h"
|
2
|
-
|
3
|
-
|
4
|
-
@implementation YapDatabaseDefaults
|
5
|
-
|
6
|
-
@synthesize objectCacheEnabled = objectCacheEnabled;
|
7
|
-
@synthesize objectCacheLimit = objectCacheLimit;
|
8
|
-
|
9
|
-
@synthesize metadataCacheEnabled = metadataCacheEnabled;
|
10
|
-
@synthesize metadataCacheLimit = metadataCacheLimit;
|
11
|
-
|
12
|
-
@synthesize objectPolicy = objectPolicy;
|
13
|
-
@synthesize metadataPolicy = metadataPolicy;
|
14
|
-
|
15
|
-
#if TARGET_OS_IPHONE
|
16
|
-
@synthesize autoFlushMemoryFlags = autoFlushMemoryFlags;
|
17
|
-
#endif
|
18
|
-
|
19
|
-
- (id)init
|
20
|
-
{
|
21
|
-
if ((self = [super init]))
|
22
|
-
{
|
23
|
-
objectCacheEnabled = YES;
|
24
|
-
objectCacheLimit = 250;
|
25
|
-
|
26
|
-
metadataCacheEnabled = YES;
|
27
|
-
metadataCacheLimit = 500;
|
28
|
-
|
29
|
-
objectPolicy = YapDatabasePolicyContainment;
|
30
|
-
metadataPolicy = YapDatabasePolicyContainment;
|
31
|
-
|
32
|
-
#if TARGET_OS_IPHONE
|
33
|
-
autoFlushMemoryFlags = YapDatabaseConnectionFlushMemoryFlags_All;
|
34
|
-
#endif
|
35
|
-
}
|
36
|
-
return self;
|
37
|
-
}
|
38
|
-
|
39
|
-
- (id)copyWithZone:(NSZone *)zone
|
40
|
-
{
|
41
|
-
YapDatabaseDefaults *copy = [[[self class] alloc] init];
|
42
|
-
|
43
|
-
copy->objectCacheEnabled = objectCacheEnabled;
|
44
|
-
copy->objectCacheLimit = objectCacheLimit;
|
45
|
-
|
46
|
-
copy->metadataCacheEnabled = metadataCacheEnabled;
|
47
|
-
copy->metadataCacheLimit = metadataCacheLimit;
|
48
|
-
|
49
|
-
copy->objectPolicy = objectPolicy;
|
50
|
-
copy->metadataPolicy = metadataPolicy;
|
51
|
-
|
52
|
-
#if TARGET_OS_IPHONE
|
53
|
-
copy->autoFlushMemoryFlags = autoFlushMemoryFlags;
|
54
|
-
#endif
|
55
|
-
|
56
|
-
return copy;
|
57
|
-
}
|
58
|
-
|
59
|
-
- (void)setObjectPolicy:(YapDatabasePolicy)newObjectPolicy
|
60
|
-
{
|
61
|
-
// sanity check
|
62
|
-
switch (newObjectPolicy)
|
63
|
-
{
|
64
|
-
case YapDatabasePolicyContainment :
|
65
|
-
case YapDatabasePolicyShare :
|
66
|
-
case YapDatabasePolicyCopy : objectPolicy = newObjectPolicy; break;
|
67
|
-
default : objectPolicy = YapDatabasePolicyContainment; // revert to default
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
- (void)setMetadataPolicy:(YapDatabasePolicy)newMetadataPolicy
|
72
|
-
{
|
73
|
-
// sanity check
|
74
|
-
switch (newMetadataPolicy)
|
75
|
-
{
|
76
|
-
case YapDatabasePolicyContainment :
|
77
|
-
case YapDatabasePolicyShare :
|
78
|
-
case YapDatabasePolicyCopy : metadataPolicy = newMetadataPolicy; break;
|
79
|
-
default : metadataPolicy = YapDatabasePolicyContainment; // revert to default
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
@end
|
@@ -1,158 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Logging plays a very important role in open-source libraries.
|
3
|
-
*
|
4
|
-
* Good documentation and comments decrease the learning time required to use a library.
|
5
|
-
* But proper logging takes this futher by:
|
6
|
-
* - Providing a way to trace the execution of the library
|
7
|
-
* - Allowing developers to quickly identify subsets of the code that need analysis
|
8
|
-
* - Making it easier for developers to find potential bugs, either in their code or the library
|
9
|
-
* - Drawing attention to potential mis-configurations or mis-uses of the API
|
10
|
-
*
|
11
|
-
* Ultimately logging is an interactive extension to comments.
|
12
|
-
**/
|
13
|
-
|
14
|
-
/**
|
15
|
-
* Define log levels.
|
16
|
-
* YapDatabase uses 4 log levels:
|
17
|
-
*
|
18
|
-
* error - For critical errors that will likely break functionality
|
19
|
-
* warn - For problems that are concerning, but not quite critical
|
20
|
-
* info - For general, but important, information such as performing a database upgrade
|
21
|
-
* verbose - For all the other low-level debugging type information
|
22
|
-
*
|
23
|
-
* Notice that the levels are actually defined using bitwise flags.
|
24
|
-
* This means you have full control to flip individual logs on/off.
|
25
|
-
* For example, you could enable errors and info, but not warnings, if you wanted.
|
26
|
-
**/
|
27
|
-
|
28
|
-
#define YDB_LOG_FLAG_ERROR (1 << 0) // 0...00001
|
29
|
-
#define YDB_LOG_FLAG_WARN (1 << 1) // 0...00010
|
30
|
-
#define YDB_LOG_FLAG_INFO (1 << 2) // 0...00100
|
31
|
-
#define YDB_LOG_FLAG_VERBOSE (1 << 3) // 0...01000
|
32
|
-
|
33
|
-
#define YDB_LOG_LEVEL_OFF 0 // 0...00000
|
34
|
-
#define YDB_LOG_LEVEL_ERROR (YDB_LOG_LEVEL_OFF | YDB_LOG_FLAG_ERROR) // 0...00001
|
35
|
-
#define YDB_LOG_LEVEL_WARN (YDB_LOG_LEVEL_ERROR | YDB_LOG_FLAG_WARN) // 0...00011
|
36
|
-
#define YDB_LOG_LEVEL_INFO (YDB_LOG_LEVEL_WARN | YDB_LOG_FLAG_INFO) // 0...00111
|
37
|
-
#define YDB_LOG_LEVEL_VERBOSE (YDB_LOG_LEVEL_INFO | YDB_LOG_FLAG_VERBOSE) // 0...01111
|
38
|
-
|
39
|
-
#define YDB_LOG_ERROR (ydbLogLevel & YDB_LOG_LEVEL_ERROR)
|
40
|
-
#define YDB_LOG_WARN (ydbLogLevel & YDB_LOG_LEVEL_WARN)
|
41
|
-
#define YDB_LOG_INFO (ydbLogLevel & YDB_LOG_LEVEL_INFO)
|
42
|
-
#define YDB_LOG_VERBOSE (ydbLogLevel & YDB_LOG_LEVEL_VERBOSE)
|
43
|
-
|
44
|
-
/**
|
45
|
-
* Define trace, which is in addition to log levels.
|
46
|
-
* It may be turned on/off independent of the log level.
|
47
|
-
**/
|
48
|
-
|
49
|
-
#define YDB_LOG_FLAG_TRACE (1 << 4) // 0...10000
|
50
|
-
|
51
|
-
/**
|
52
|
-
* YapDatabase supports multiple logging techniques.
|
53
|
-
*
|
54
|
-
* YapDatabase supports the CocoaLumberjack logging framework.
|
55
|
-
* This is a professional open-source logging library for Mac and iOS development.
|
56
|
-
*
|
57
|
-
* If you're not using Lumberjack then you can downgrade to NSLog.
|
58
|
-
* You can also completely disable logging throughout the entire library.
|
59
|
-
*
|
60
|
-
* You are strongly discouraged from modifying this file.
|
61
|
-
* If you do, you make it more difficult on yourself to merge future bug fixes and improvements from the project.
|
62
|
-
* Instead, you should override the default values in your own application.
|
63
|
-
**/
|
64
|
-
|
65
|
-
#define YapDatabaseLoggingTechnique_Lumberjack 2 // optimal
|
66
|
-
#define YapDatabaseLoggingTechnique_NSLog 1 // slower
|
67
|
-
#define YapDatabaseLoggingTechnique_Disabled 0 // disabled
|
68
|
-
|
69
|
-
#ifndef YapDatabaseLoggingTechnique
|
70
|
-
#define YapDatabaseLoggingTechnique YapDatabaseLoggingTechnique_Lumberjack
|
71
|
-
#endif
|
72
|
-
|
73
|
-
/**
|
74
|
-
* CocoaLumberjack has several useful macros and functions.
|
75
|
-
* If not using Lumberjack, we re-define these macros for our own use.
|
76
|
-
**/
|
77
|
-
|
78
|
-
#if YapDatabaseLoggingTechnique != YapDatabaseLoggingTechnique_Lumberjack
|
79
|
-
|
80
|
-
#ifndef THIS_METHOD
|
81
|
-
#define THIS_METHOD NSStringFromSelector(_cmd)
|
82
|
-
#endif
|
83
|
-
|
84
|
-
#ifndef THIS_FILE
|
85
|
-
NSString *YDBExtractFileNameWithoutExtension(const char *filePath);
|
86
|
-
#define THIS_FILE (YDBExtractFileNameWithoutExtension(__FILE__))
|
87
|
-
#endif
|
88
|
-
|
89
|
-
#endif
|
90
|
-
|
91
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
92
|
-
#if (YapDatabaseLoggingTechnique == YapDatabaseLoggingTechnique_Lumberjack)
|
93
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
94
|
-
|
95
|
-
// Logging Enabled.
|
96
|
-
// Logging uses the CocoaLumberjack framework. (optimal)
|
97
|
-
//
|
98
|
-
// There is a TON of documentation available from the project page:
|
99
|
-
// https://github.com/robbiehanson/CocoaLumberjack
|
100
|
-
|
101
|
-
#import "DDLog.h"
|
102
|
-
|
103
|
-
#define YDBLogAsync NO
|
104
|
-
#define YDBLogContext 27017
|
105
|
-
|
106
|
-
#define YDBLogMaybe(flg, frmt, ...) LOG_OBJC_MAYBE(YDBLogAsync, ydbLogLevel, flg, YDBLogContext, frmt, ##__VA_ARGS__)
|
107
|
-
|
108
|
-
#define YDBLogError(frmt, ...) YDBLogMaybe(YDB_LOG_FLAG_ERROR, (@"%@: " frmt), THIS_FILE, ##__VA_ARGS__)
|
109
|
-
#define YDBLogWarn(frmt, ...) YDBLogMaybe(YDB_LOG_FLAG_WARN, (@"%@: " frmt), THIS_FILE, ##__VA_ARGS__)
|
110
|
-
#define YDBLogInfo(frmt, ...) YDBLogMaybe(YDB_LOG_FLAG_INFO, (@"%@: " frmt), THIS_FILE, ##__VA_ARGS__)
|
111
|
-
#define YDBLogVerbose(frmt, ...) YDBLogMaybe(YDB_LOG_FLAG_VERBOSE, (@"%@: " frmt), THIS_FILE, ##__VA_ARGS__)
|
112
|
-
|
113
|
-
#define YDBLogTrace(frmt, ...) YDBLogMaybe(YDB_LOG_FLAG_TRACE, (@"%@: " frmt), THIS_FILE, ##__VA_ARGS__)
|
114
|
-
#define YDBLogAutoTrace() YDBLogMaybe(YDB_LOG_FLAG_TRACE, @"%@: %@", THIS_FILE, THIS_METHOD)
|
115
|
-
|
116
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
117
|
-
#elif (YapDatabaseLoggingTechnique == YapDatabaseLoggingTechnique_NSLog)
|
118
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
119
|
-
|
120
|
-
// Logging Enabled.
|
121
|
-
// Logging uses plain old NSLog. (slower)
|
122
|
-
|
123
|
-
#define YDBLogMaybe(flg, frmt, ...) \
|
124
|
-
do{ if(ydbLogLevel & flg) NSLog((@"%@: " frmt), THIS_FILE, ##__VA_ARGS__); } while(0)
|
125
|
-
|
126
|
-
#define YDBLogError(frmt, ...) YDBLogMaybe(YDB_LOG_FLAG_ERROR, frmt, ##__VA_ARGS__)
|
127
|
-
#define YDBLogWarn(frmt, ...) YDBLogMaybe(YDB_LOG_FLAG_WARN, frmt, ##__VA_ARGS__)
|
128
|
-
#define YDBLogInfo(frmt, ...) YDBLogMaybe(YDB_LOG_FLAG_INFO, frmt, ##__VA_ARGS__)
|
129
|
-
#define YDBLogVerbose(frmt, ...) YDBLogMaybe(YDB_LOG_FLAG_VERBOSE, frmt, ##__VA_ARGS__)
|
130
|
-
|
131
|
-
#define YDBLogTrace(frmt, ...) YDBLogMaybe(YDB_LOG_FLAG_TRACE, (@"%@: " frmt), THIS_FILE, ##__VA_ARGS__)
|
132
|
-
#define YDBLogAutoTrace() YDBLogMaybe(YDB_LOG_FLAG_TRACE, @"%@: %@", THIS_FILE, THIS_METHOD)
|
133
|
-
|
134
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
135
|
-
#else
|
136
|
-
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
137
|
-
|
138
|
-
// Logging Disabled
|
139
|
-
|
140
|
-
#undef YDB_LOG_ERROR
|
141
|
-
#undef YDB_LOG_WARN
|
142
|
-
#undef YDB_LOG_INFO
|
143
|
-
#undef YDB_LOG_VERBOSE
|
144
|
-
|
145
|
-
#define YDB_LOG_ERROR (NO)
|
146
|
-
#define YDB_LOG_WARN (NO)
|
147
|
-
#define YDB_LOG_INFO (NO)
|
148
|
-
#define YDB_LOG_VERBOSE (NO)
|
149
|
-
|
150
|
-
#define YDBLogError(frmt, ...) {}
|
151
|
-
#define YDBLogWarn(frmt, ...) {}
|
152
|
-
#define YDBLogInfo(frmt, ...) {}
|
153
|
-
#define YDBLogVerbose(frmt, ...) {}
|
154
|
-
|
155
|
-
#define YDBLogTrace(frmt, ...) {}
|
156
|
-
#define YDBLogAutoTrace() {}
|
157
|
-
|
158
|
-
#endif
|
@@ -1,73 +0,0 @@
|
|
1
|
-
#import "YapDatabaseLogging.h"
|
2
|
-
|
3
|
-
|
4
|
-
#if YapDatabaseLoggingTechnique != YapDatabaseLoggingTechnique_Lumberjack
|
5
|
-
|
6
|
-
/**
|
7
|
-
* This method is based on CocoaLumberjack's DDExtractFileNameWithoutExtension function.
|
8
|
-
* The copy option has been removed, as we only use __FILE__ as the filePath parameter.
|
9
|
-
**/
|
10
|
-
NSString *YDBExtractFileNameWithoutExtension(const char *filePath)
|
11
|
-
{
|
12
|
-
if (filePath == NULL) return nil;
|
13
|
-
|
14
|
-
char *lastSlash = NULL;
|
15
|
-
char *lastDot = NULL;
|
16
|
-
|
17
|
-
char *p = (char *)filePath;
|
18
|
-
|
19
|
-
while (*p != '\0')
|
20
|
-
{
|
21
|
-
if (*p == '/')
|
22
|
-
lastSlash = p;
|
23
|
-
else if (*p == '.')
|
24
|
-
lastDot = p;
|
25
|
-
|
26
|
-
p++;
|
27
|
-
}
|
28
|
-
|
29
|
-
char *subStr;
|
30
|
-
NSUInteger subLen;
|
31
|
-
|
32
|
-
if (lastSlash)
|
33
|
-
{
|
34
|
-
if (lastDot)
|
35
|
-
{
|
36
|
-
// lastSlash -> lastDot
|
37
|
-
subStr = lastSlash + 1;
|
38
|
-
subLen = lastDot - subStr;
|
39
|
-
}
|
40
|
-
else
|
41
|
-
{
|
42
|
-
// lastSlash -> endOfString
|
43
|
-
subStr = lastSlash + 1;
|
44
|
-
subLen = p - subStr;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
else
|
48
|
-
{
|
49
|
-
if (lastDot)
|
50
|
-
{
|
51
|
-
// startOfString -> lastDot
|
52
|
-
subStr = (char *)filePath;
|
53
|
-
subLen = lastDot - subStr;
|
54
|
-
}
|
55
|
-
else
|
56
|
-
{
|
57
|
-
// startOfString -> endOfString
|
58
|
-
subStr = (char *)filePath;
|
59
|
-
subLen = p - subStr;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
|
63
|
-
// We can take advantage of the fact that __FILE__ is a string literal.
|
64
|
-
// Specifically, we don't need to waste time copying the string.
|
65
|
-
// We can just tell NSString to point to a range within the string literal.
|
66
|
-
|
67
|
-
return [[NSString alloc] initWithBytesNoCopy:subStr
|
68
|
-
length:subLen
|
69
|
-
encoding:NSUTF8StringEncoding
|
70
|
-
freeWhenDone:NO];
|
71
|
-
}
|
72
|
-
|
73
|
-
#endif
|
@@ -1,17 +0,0 @@
|
|
1
|
-
#import <Foundation/Foundation.h>
|
2
|
-
|
3
|
-
/**
|
4
|
-
* There should only be one YapDatabase or YapCollectionDatabase per file.
|
5
|
-
*
|
6
|
-
* The architecture design is to create a single parent database instance,
|
7
|
-
* and then spawn connections to the database as needed from the parent.
|
8
|
-
*
|
9
|
-
* The architecture is built around this restriction, and is dependent upon it for proper operation.
|
10
|
-
* This class simply helps maintain this requirement.
|
11
|
-
**/
|
12
|
-
@interface YapDatabaseManager : NSObject
|
13
|
-
|
14
|
-
+ (BOOL)registerDatabaseForPath:(NSString *)path;
|
15
|
-
+ (void)deregisterDatabaseForPath:(NSString *)path;
|
16
|
-
|
17
|
-
@end
|