Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBL-5181: Array Index API tests and adjustments #3330

Draft
wants to merge 4 commits into
base: release/3.2
Choose a base branch
from

Conversation

velicuvlad
Copy link
Contributor

  • moved Internal section at the end of file for Objective-C/CBLCollection.mm

  • implement internal _indexesInfo which is exactly coll.indexes() but keeping all information for each index found, not only stripping the name out of it.

  • updated LiteCore to 3.2.1-5

  • implement _unnestPathForIndex that should return unnestPath from index options -> waiting on another LiteCore

@@ -33,7 +35,7 @@

NS_ASSUME_NONNULL_BEGIN

@interface CBLCollection () <CBLRemovableListenerToken>
@interface CBLCollection () <CBLRemovableListenerToken, CBLIndexableInternal>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a reason to create a protocol for CBLIndexableInternal as CBLCollection will not be used as CBLIndexableInternal type. I think you can just add a method indexesInfo in CBLCollection() directly.


NS_ASSUME_NONNULL_BEGIN

@protocol CBLIndexableInternal <CBLIndexable>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to create the protocol for this as the method can be put directly to CBLCollection Internal.

Also no need to have underscored prefix as this function will not be a public API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants