2 releases

0.1.1 Oct 27, 2019
0.1.0 Oct 23, 2019

#6 in #mycelium


Used in 3 crates (via mycelium_index)

MIT license

85KB
2K SLoC

Db!

Base of hybrid decentralized database/ecs and eventual relational db/ecs.

Layered application this is the base layer. It is responsible for taking entities and writing them to disk.

Terminology:

  • Item: 3rd party stuff. Serialized as byte[]
  • Node: wrapper containing meta for items.
  • TagContainer: Container of nodes.
  • Tag: A key to a list of nodes.

Base Core Layer

  • Read/write disk
  • Load/unload manage memory

Layer 2

  • Persistent App
  • Indexing
  • Interpreters (Sql?, JS, ..)

Layer 3 (Optional. Shouldn't require layer 2.)

  • Networking (distributed w/discovery)

General consumer flow:

  1. Init Stew
  2. Load Tag
  3. Perform Action
  4. Save
  5. Vacuum (optional/occasionally)

Dependencies

~5–6.5MB
~118K SLoC