-
Notifications
You must be signed in to change notification settings - Fork 0
Mediachain Commands
Edward Silverton edited this page Jan 20, 2017
·
2 revisions
###Convert JSON to newline-delimited format
jq -c '' entry.json > entry.ndjson
###Note
Should use blockstack or keybase id:
mcclient query -n "blockstack:user.id" "SELECT * FROM entries.* WHERE wki = memex.global/users/<userid>/entries/1"
###Publish JSON
mcclient publish --idSelector 'id' memex.users.<userid>.entries entry.ndjson
###Query for entry
mcclient query 'SELECT * FROM memex.users.<userid>.entries.* WHERE wki = memex.global/users/<userid>/entries/1'
###Count entries
mcclient query 'SELECT MAX(counter) FROM memex.users.<userid>.entries'