gitoriaLog in with ident

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit4a2d71254a2d7125initial commitmre4a2d7125/plugins/mpackdb/cursor.hl

348 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. \* Remaining records as a Hybrid (consumes the cursor). *\
  9. all() {
  10. let out = []
  11. for (rec of #iter) {
  12. out.push(rec)
  13. }
  14. return out
  15. }

Branches

Latest commits

  • 4a2d7125initial commitmre