khonsulabs / bonsaidb

A developer-friendly document database that grows with you, written in Rust
https://bonsaidb.io/
Apache License 2.0
998 stars 37 forks source link

`ConnectedClient` needs a way to check if its disconnected #271

Closed ecton closed 10 months ago

ecton commented 1 year ago

Because ConnectedClients can be cloned and live outside of the BonsaiDb server, there should be a way for a ConnectedClient holder to know if the client is actually still connected.

We should also check that we are testing the behavior of trying to call various ConnectedClient functions with a disconnected client. Any functions that could return a disconnected error should.