RippleOSI / Ripple-Showcase-Stack-Project

repo for Showcase Stack (PulseTile+ QEWDjs + EtherCIS) - Project issues
Apache License 2.0
0 stars 0 forks source link

clearing down test data from YottaDB #59

Open tony-shannon opened 5 years ago

tony-shannon commented 5 years ago

for test data that we store for Clinical Statements Drawings etc we need to be able to prune the GTM> YottaDB> DB by clearing globals

Need a few lines of instructions from @robtweed on how to do this safely

robtweed commented 5 years ago

SSH onto dev.ripple.foundation Type GTM followed by the Enter key and you'll get the GT.M shell prompt: (GT.M is the forerunner to YottaDB and is what was used on dev and showcase - it's basically the same database as YottaDB)

GTM>

To clear down data you delete the Global (in effect the document name) containing it, using the kill command.

The Globals used are as follows:

So, for example:

GTM> kill ^ripplePictures

To reset the NHS Number <=> OpenEHR Id mapping cache, you need to delete 2 Globals:

^rippleEhrIdMap ^rippleNHSNoMap

To exit the GTM shell:

GTM> h (followed by the Enter key)

and you'll return to the SSH prompt

Note - killing a Global is instantaneous, final and permanent, without any ability to recover the data. BE VERY CAREFUL!!!!!