d6 docs

I/O and native services

Choose the guide for the service you are using:

  • Local I/O — stdout, stdin, files, and file paths.
  • Networking and signals — blocking and non-blocking TCP, polling, UDP, signals, and TLS.
  • Databases — SQLite3, PostgreSQL, and MySQL.
  • Time — construction, parsing, formatting, timezones, arithmetic, comparisons, durations, and monotonic time.
  • Processes — completed commands and live subprocess handles.
  • JSON — JSON.stringify and JSON.parse.

All native-resource objects require explicit cleanup where their topic guide documents close(). Use ensure when a resource must be released after an exception.

Edit this page on GitHub