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-5209 : Implement Collection and Scope Database Accessor #3208

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

pasin
Copy link
Contributor

@pasin pasin commented Dec 15, 2023

  • Implemented Collection and Scope Database Accessor.
  • The database object is retained in the collection and scope object unless the collection object is cached in the database object to avoid the circular reference.
  • Only the default collection is cached in the database object as it’s commonly used in the old decrecated functions that are redirected to the default collection.
  • Refactor the code as now the database object from collection will not be null. This made a lot of code simpler.
  • Additonal : fixed collection's hash function.
  • Companion PR: https://github.com/couchbaselabs/couchbase-lite-ios-ee/pull/190

* Implemented Collection and Scope Database Accessor.
* The database object is retained in the collection and scope object unless the collection object is cached in the database object to avoid the circular reference.
* Only the default collection is cached in the database object as it’s commonly used in the old decrecated functions that are redirected to the default collection.
* Refactor the code as now the database object from collection will not be null. This made code simpler.
@pasin pasin merged commit c6b949b into master Dec 20, 2023
@pasin pasin deleted the feature/CBL-5209 branch December 20, 2023 02:31
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.

None yet

2 participants