:amphora: Delva: an embedded JSON database for Kot...
# feed
a
🏺 Delva: an embedded JSON database for Kotlin that indexes everything If you have JSON you didn't design and you need to query it, you usually have to run a database server or force the data into a schema. Delva lets you skip both. It's a library: your process opens a directory and queries it directly. • Every key–value pair is indexed on insert, so you don't plan indexes up front • Key–value and full RFC 9535 JSONPath search. A query that would need a full scan is refused unless you allow it, and explain shows how a query will run • Memory depends on your settings, not on document size. Documents stream in and out, and the tests write and read back a 2 GiB document in a 256 MB heap • Crash-consistent: after a crash an insert is either all there or not there at all. verify checks the whole store, and other processes can read while one process writes • Suspending API plus blocking(), an optional kotlinx-serialization module, and a delva CLI • JDK 22+, depends only on stdlib + kotlinx-coroutines, Apache 2.0 implementation("app.oreshkov.delvadelva0.2.0") Why I built it and how it works: https://www.oreshkov.app/blog/introducing-delva.html Code: https://github.com/aoreshkov/delva It's at 0.2, so the API can still change before 1.0, and that makes now the best time for feedback. I'd especially like JSON files that it handles badly 🙏
❤️ 1