MCPcopy Create free account
hub / github.com/abaplint/transpiler / insert

Method insert

packages/runtime/src/types/table.ts:248–264  ·  view source on GitHub ↗
(data: TableRowType)

Source from the content-addressed store, hash-verified

246 val = val.getInternalID();
247 } else if (val instanceof Structure) {
248 val = val.getCharacter(true);
249 } else {
250 // convert
251 const row = field.clone() as any;
252 row.set(val.get());
253 val = row.get();
254 }
255 } else {
256 throw new Error("HashedTable, buildHashFromSimple, unexpected type");
257 }
258
259 hash += k + ":" + val + "|";
260 }
261 return hash;
262 }
263
264 public read(hash: string): TableRowType | undefined {
265 return this.value[hash];
266 }
267

Callers 2

appendThisMethod · 0.95
setMethod · 0.95

Calls 2

buildHashFromDataMethod · 0.95
cloneRowMethod · 0.95

Tested by

no test coverage detected