memgraph / rsmgclient

Memgraph database adapter for Rust programming language.
https://crates.io/crates/rsmgclient
Apache License 2.0
38 stars 6 forks source link

Update the status in `Connection::fetch` #35

Open antaljanosbenjamin opened 3 years ago

antaljanosbenjamin commented 3 years ago

Currently Connection::fetch doesn't update the status, most probably because when Connection::execute is called in an eager pulling configuration, then Connection::pull_and_fetch_all would change the status which can corrupt the whole object. My proposal is let the status update happen, but set the desired state in Connection::execute after caling Connection::pull_and_fetch_all.