1 | static bool deleteAllConceptsOfType(S progID, S conceptClass) { |
2 | RemoteDB db = new RemoteDB(progID); |
3 | if (db.functional()) { |
4 | L<RC> list = db.xlist(conceptClass); |
5 | if (empty(list)) false; |
6 | print("Deleting " + n(list, "concepts")); |
7 | db.xdelete(list); |
8 | true; |
9 | } |
10 | throw todo("Can't do this offline yet (streamline saving first)"); |
11 | //Concepts c = new Concepts(progID).safeLoad(); |
12 | } |
Began life as a copy of #1006274
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006296 |
Snippet name: | deleteAllConceptsOfType [also remote/from disk] |
Eternal ID of this version: | #1006296/1 |
Text MD5: | 0dc27cd410a93b121a7b6bb6f8db6242 |
Author: | stefan |
Category: | javax / concepts / rpc |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-26 20:25:07 |
Source code size: | 409 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 506 / 489 |
Referenced in: | [show references] |