khonsulabs / bonsaidb

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

Use GATs for View::Key #287

Closed ecton closed 1 year ago

ecton commented 1 year ago

Closes #284

This pull request aims to add support for GATs on View::Key, which will allow the ViewSchema::map() and ViewSchema::reduce() functions to returned borrowed data from the document.

This will require updating the Connection/AsyncConnection view query types to return Key::Owned. Part of the complexity arises from type erasure in SerializedView.

ecton commented 1 year ago

This PR is being abandoned in favor of #288