Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

oskardudycz
Copy link
Collaborator

1. Made in-memory database return Promises instead of sync results

For now, this may seem redundant, but in the future, we may add tracing and a single writer, which will require Promises. Also, we should make it closer to Pongo definitions.

Better to do those breaking changes sooner rather than later.

2. Renamed the Database to the InMemoryDatabase and DocumentsCollection to InMemoryDocumentsCollection.

This will make it more explicit, especially since some signatures, like find by predicate, already assume that we may add a base signature when needed in the future.

@stepaniukm @GaryACraine @mbirkegaard FYI

For now this may seem as redundant, but in the future we may add tracing, single writer which will add the need to Promises. Also, we should make it closer to Pongo definitions.

Better to do those breaking changes sooner than later.
@oskardudycz oskardudycz added this to the 0.38.0 milestone May 11, 2025
@oskardudycz oskardudycz force-pushed the inmemory_database_with_promises branch 2 times, most recently from 68ae90d to 8576219 Compare May 11, 2025 08:43
…oryDocumentsCollection

This will make it more explicit, especially that some signatures like find by predicate already assume that, in the future we may add signature when needed.
@oskardudycz oskardudycz force-pushed the inmemory_database_with_promises branch from 8576219 to 5b31f49 Compare May 11, 2025 10:01
@oskardudycz oskardudycz merged commit 434474d into main May 11, 2025
6 of 8 checks passed
@oskardudycz oskardudycz deleted the inmemory_database_with_promises branch May 11, 2025 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant