mirage / irmin

Irmin is a distributed database that follows the same design principles as Git
https://irmin.org
ISC License
1.85k stars 157 forks source link

add a way to map contents to a subtree #33

Closed samoht closed 10 years ago

samoht commented 10 years ago

This will be useful to map OCaml values of a given type to a subtree. Design idea: look at views in ctypes.

samoht commented 10 years ago

Seems related to #6

samoht commented 10 years ago

Done in #43

I've added the concept of "views", which looks like a normal read-write store, but can be used to:

A view can be built in two ways:

The you can "commit" a view anywhere in the store (ie. under any path). At the moment, the view contents will replace the previous contents stored under this path. You can store the same view in different places.