mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-14 04:19:22 +03:00
31 lines
665 B
Plaintext
31 lines
665 B
Plaintext
/- *resource
|
|
/+ store=graph-store
|
|
|_ =bowl:gall
|
|
++ scry-for
|
|
|* [=mold =path]
|
|
.^ mold
|
|
%gx
|
|
(scot %p our.bowl)
|
|
%graph-store
|
|
(scot %da now.bowl)
|
|
(snoc `^path`path %noun)
|
|
==
|
|
::
|
|
++ get-graph
|
|
|= res=resource
|
|
^- marked-graph:store
|
|
%+ scry-for marked-graph:store
|
|
/graph/(scot %p entity.res)/[name.res]
|
|
::
|
|
++ peek-update-log
|
|
|= res=resource
|
|
^- (unit time)
|
|
(scry-for (unit time) /peek-update-log/(scot %p entity.res)/[name.res])
|
|
::
|
|
++ get-update-log-subset
|
|
|= [res=resource start=@da]
|
|
^- update-log:store
|
|
%+ scry-for update-log:store
|
|
/update-log-subset/(scot %p entity.res)/[name.res]/(scot %da start)/'~'
|
|
--
|