- For bonsaidb-local:
- For bonsaidb-server:
- For bonsaidb-client:
Using these traits, you can write code that generically can work regardless of whether BonsaiDb is operationg locally with no network connection or across the globe.
The only differences between
AsyncPubSub is that
AsyncPubSub is able to be used in async code and the
PubSub trait is
designed to block the current thread. BonsaiDb is designed to try to make it
hard to accidentally call a blocking function from async code accidentally,
while still supporting both async and blocking access patterns.