mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 14:42:02 +03:00
graph-store: wrote basic queries
This commit is contained in:
parent
07cf374462
commit
90a8df104b
@ -331,7 +331,15 @@
|
||||
|= =path
|
||||
^- (unit (unit cage))
|
||||
?+ path (on-peek:def path)
|
||||
[%x %keys ~] ``noun+!>(~(key by graphs))
|
||||
[%x %keys ~] ``noun+!>(~(key by graphs))
|
||||
[%x %tags ~] ``noun+!>(~(key by tag-queries))
|
||||
[%x %graph @ @ ~]
|
||||
=/ =ship (slav %p i.t.t.path)
|
||||
=/ =term i.t.t.path
|
||||
=/ graph=(unit graph:store) (~(get by graphs) [ship term])
|
||||
?~ graph
|
||||
~
|
||||
``noun+!>(u.graph)
|
||||
==
|
||||
::
|
||||
++ on-arvo on-arvo:def
|
||||
|
@ -20,6 +20,7 @@
|
||||
+$ action-log ((mop time action) lth)
|
||||
::
|
||||
+$ graph ((mop atom node) lth)
|
||||
::
|
||||
+$ internal-graph
|
||||
$~ [%empty ~]
|
||||
$% [%graph p=graph]
|
||||
|
Loading…
Reference in New Issue
Block a user