1 unstable release
0.4.0 | Aug 17, 2022 |
---|
#250 in Database implementations
24KB
581 lines
A quick-and-dirty “““embedded database””” library.
This is just a library for storing data in JSON files, but with a few added conveniences:
- The saved data includes a schema version number, and will be automatically migrated to newer schema versions.
- The live data is guarded by a built-in read-write lock which can be used synchronously or from a [tokio] async environment.
- Data is saved to the backing JSON file, in a hopefully-atomic fashion, every time a write lock is released.
Data can be represented in pretty much any form you can convince [serde] to go along with, except for the following restrictions:
Dependencies
~3–9.5MB
~89K SLoC