khonsulabs / bonsaidb

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

Convert from Header to CollectionHeader in view query result types #228

Closed ecton closed 11 months ago

ecton commented 2 years ago

The result type of query() should use a CollectionHeader instead of a Header for the document's source, since the Rust type is known.

This will require refactoring the internal view mapping code as the Map type is reused. A separate type will need to be used for that section of code which retains the Header type.