Created
June 23, 2017 05:16
-
-
Save yrashk/636ef73067387eb1a42c0ca24e98e443 to your computer and use it in GitHub Desktop.
This is a simplified example [attributes have unprefixed/unversioned names, etc] of ViewDB journalling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
<b3da98d2-57cf-11e7-b564-6c4008925d80> -- fact ID | |
DUP "name" "something" 'INDEX/STRING (value => key component transformer) ATTR/ASSOC | |
DUP "tags" ["nature" "photo"] [] ATTR/ASSOCVAL ( associate value only, no index ) | |
DUP "hasTag" "nature" 'INDEX/STRING ATTR/ASSOC | |
DUP "hasTag" "photo" 'INDEX/STRING ATTR/ASSOC | |
(the above tagging example can be simplified by adding some "list" primitives) | |
DUP "timestamp" HLC [] ATTR/ASSOCUNIQ (can't have more than 1 "timestamp" attribute indexed) | |
] WRITE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment