MCPcopy Index your code
hub / github.com/witheve/Eve / save

Method save

src/runtime/runtime.ts:252–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 }
251
252 save() {
253 let results = {};
254 for(let database of this.databases) {
255 let name = this.databaseToName(database);
256 let values = database.toTriples();
257 for(let value of values) {
258 let [e,a,v,n] = value;
259 if(ids.isId(e)) value[0] = ids.parts(e);
260 if(ids.isId(v)) value[2] = ids.parts(v);
261 }
262 results[name] = values;
263 }
264 return results;
265 }
266
267 load(dbs: Object) {
268 let changes = this.createChanges();

Callers

nothing calls this directly

Calls 4

databaseToNameMethod · 0.95
isIdMethod · 0.80
partsMethod · 0.80
toTriplesMethod · 0.45

Tested by

no test coverage detected