Uses 1059K of libraries. Click here for Pure Java version (10872L/58K).
!7 concept Bla { S name; } cmodule2 QuickReloadTest > DynPrintLog { transient virtual Concepts oldConcepts; start { print(+oldConcepts); print(+Bla); db(); printVars_str(concepts := db_mainConcepts().concepts); pnlStruct(list(Bla)); db_checkConceptIDs(); print(conceptsWhere(Bla, name := "yo")); uniq(Bla, name := "yo"); } Concepts _getReloadData() { ret db_mainConcepts(); } void _setReloadData_early(virtual Concepts data) { if (data == null) ret; oldConcepts = data; Concepts concepts = db_mainConcepts(); concepts.miscMapPut("dbGrabber", func -> Bool { concepts.miscMapRemove("dbGrabber"); pcall { concepts.idCounter = getLong idCounter(oldConcepts); printVars_str(idCounter := concepts.idCounter); Map<Long, virtual Concept> oldMap = cast _get concepts(oldConcepts); printVars_str(+oldMap); concepts.concepts.putAll((Map<Long, Concept>) quickImport_unlisted(oldMap)); // Note: this calls _doneLoading2() on all concepts concepts.assignConceptsToUs(); true; } false; }); } }
Began life as a copy of #1030837
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030841 | 
| Snippet name: | DB quickImport reload test, cmodule2 version [OK] | 
| Eternal ID of this version: | #1030841/3 | 
| Text MD5: | 79283c9bfd02a62b369edc5d2052a0bb | 
| Transpilation MD5: | 1832aaf5f2dca9f7c4a9b1a46d454b88 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX source code (Dynamic Module) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2021-04-02 14:57:35 | 
| Source code size: | 1196 bytes / 43 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 386 / 519 | 
| Version history: | 2 change(s) | 
| Referenced in: | [show references] |