9 releases (5 breaking)

0.6.1 Mar 9, 2021
0.6.0 Sep 9, 2020
0.5.0 Aug 27, 2020
0.4.0 Aug 19, 2020
0.1.1 Jul 22, 2020

#17 in #append-only

Download history 15/week @ 2024-11-13 7/week @ 2024-11-20 8/week @ 2024-11-27 28/week @ 2024-12-04 34/week @ 2024-12-11 4/week @ 2024-12-18 62/week @ 2025-01-08 143/week @ 2025-01-15 186/week @ 2025-02-05 23/week @ 2025-02-12 19/week @ 2025-02-19 14/week @ 2025-02-26

242 downloads per month

Custom license

30KB
667 lines

pile - a simple and fast append-only data store

Crates.io codecov

Design goals

  • Efficient adding of big chunks of data.
  • A user should be able to copy the storage data (for example, over the network) while still being able to use the database for both reads and writes.
  • The storage should have a minimal dependency footprint.

Usage guide

Example

use data_pile::Database;
let db = Database::file("./pile").unwrap();
let value = b"some data";
db.put(&value).unwrap();

Notes

Values are accessible only by their sequential numbers. You will need an external index if you want any other kind of keys.


lib.rs:

pile - a simple and fast append-only data store

Design goals

  • Efficient adding of bug chunks of data.
  • A user should be able to copy the storage data (for example, over the network) while still being able to use the database for both reads and writes.
  • The storage should have a minimal dependency footprint.

Usage guide

Example

use data_pile::Database;
let db = Database::new("./pile").unwrap();
let value = b"some data";
db.put(&value).unwrap();

Dependencies

~0.1–12MB
~151K SLoC