Jeff Martin on Nostr: I need a persistent data store for a project I'm working on. Embedded (in-process) is ...
I need a persistent data store for a project I'm working on. Embedded (in-process) is required, want stability over performance, prefer no-sql over sql, pure #Rust implementations preferred, but need Rust bindings at the very least.
I used to reach for Sled for these things, but it never seems to reach a stable release. They're trying to be very fancy, and apparently that causes quite a bit of unstability.
Next I went for the Boring Tech approach and looked into Sqlite wrappers for Rust. Sqlite is great of course, but it's written in a memory unsafe language, so bit of a detractor there. Plus, writing raw SQL is soooo 2006 and also chocked full of footguns.
So I looked into the premiere ORM for Rust (apparently), Diesel, and the intro guide was just a ton of boilerplate and endless setup. Ooof! Way overkill for my very simple data storage task.
I'm currently looking at Redb, which looks like a good mix of simplicity and reliability. I may experiment with that one next. Plus it has the confidence to list a version number greater than one.
Anyone have a favorite data store they want to share?
I used to reach for Sled for these things, but it never seems to reach a stable release. They're trying to be very fancy, and apparently that causes quite a bit of unstability.
Next I went for the Boring Tech approach and looked into Sqlite wrappers for Rust. Sqlite is great of course, but it's written in a memory unsafe language, so bit of a detractor there. Plus, writing raw SQL is soooo 2006 and also chocked full of footguns.
So I looked into the premiere ORM for Rust (apparently), Diesel, and the intro guide was just a ton of boilerplate and endless setup. Ooof! Way overkill for my very simple data storage task.
I'm currently looking at Redb, which looks like a good mix of simplicity and reliability. I may experiment with that one next. Plus it has the confidence to list a version number greater than one.
Anyone have a favorite data store they want to share?