1 | var DocumentStore = require('ewd-document-store');
|
2 | var interface = require('nodem');
|
3 | var db = new interface.Gtm();
|
4 | var ok = db.open();
|
5 | var documentStore = new DocumentStore(db);
|
6 | var fs = require('fs');
|
7 |
|
8 | var contentStore = new documentStore.DocumentNode('qewdContentStore');
|
9 | var json = contentStore.getDocument(true);
|
10 | fs.writeFileSync('contentStore.json', JSON.stringify(json, null, 2), 'utf-8');
|
11 |
|
12 | var clinicalStatements = new documentStore.DocumentNode('rippleClinStatements');
|
13 | json = clinicalStatements.getDocument(true);
|
14 | fs.writeFileSync('clinicalStatements.json', JSON.stringify(json, null, 2), 'utf-8');
|
15 |
|
16 | console.log('done');
|
17 |
|
18 | db.close(); |
\ | No newline at end of file |