cberner / redb

An embedded key-value database in pure Rust
https://www.redb.org
Apache License 2.0
3.07k stars 137 forks source link

chore: production ready borsh(with schema) example #817

Closed dzmitry-lahoda closed 3 weeks ago

cberner commented 3 weeks ago

Thanks for working on this, but I don't want to increase the MSRV if it's only to support a new example. Also, I think the bincode example is simpler and similar enough to this one, that it is a better example for people to work from.

dzmitry-lahoda commented 2 weeks ago

when you will update rust version for some reason, would it be possible to look at PR again?

as for bincode, it is only bincode_keys, not values (at least by name : ), also it does not shows shema usage (along with no fixed size). so borsh is example of how schema can be used to automate keys/values for redb.

thank you