gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit09d66ed509d66ed5status: #60 livemre09d66ed5/plugins/mpackdb/cursor.hl

594 B

  1. \* A lazy result cursor: each next() decodes ONE record. Handed out by
  2. MPackDB.cursor(); never `new`ed by app code. *\
  3. Hybrid #iter
  4. \* Next record, or null when exhausted. *\
  5. next() {
  6. return #iter.next()
  7. }
  8. \* Release what the cursor holds now (its snapshot). A `for` loop over a Cursor that is left by
  9. break/return calls this once (mission 418); calling it again, or after the end, is harmless. *\
  10. close() {
  11. if (#iter != null) { #iter.close() }
  12. }
  13. \* Remaining records as a Hybrid (consumes the cursor). *\
  14. all() {
  15. let out = []
  16. for (rec of #iter) {
  17. out.push(rec)
  18. }
  19. return out
  20. }

Branches

Latest commits

  • 09d66ed5status: #60 livemre
  • 4171672flog: #60 livemre
  • f52862a2log: HM62b startedmre
  • 88fde2c4mission HM62bmre
  • a722e526log: #62 blocked by hybriel#317mre
  • 074a7418log: #62 assigned to Tracker; pending rulemre
  • 06f6ae8fHM62 report: mpackdb index gapmre
  • 86fe5430log: HM62 startedmre
  • 755307bbmission HM62mre
  • 4b2f2995HM61 report: tracker#61 packed people ordermre
  • 48faa84flog: #60 deploy startedmre
  • 90734c6cMerge branch 'hm60-shortids'mre
  • e0db0d1bHM60 report: tracker#60 packed short-ID ownersmre
  • 3c79b576Pack short-ID ownership into byte buffersmre
  • e822524bstatus wordingmre
  • 1c7f0480log: HM60/HM61 startedmre
  • 2841d215missions HM60 HM61mre
  • 289c6ce4HM1 report: heap object breakdownmre
  • 2e7d6257log: HM1 startedmre
  • 2f790465mission HM1: heap object breakdownmre