File System
.qi.path
Build paths into `:path/to/file
.qi.spath
Similar to path but returns as "path/to/file"
.qi.ospath
The same as spath on Mac/Linux, different on Windows
.qi.exists
Returns a boolean indicating whether a file / folder exists
.qi.ensuredir
Creates a directory if it does not already exist
Event
.event.addhandler
Register a handler for an event
Cron (timer)
The cron library uses the event library to manage jobs that are to be run on a timer..cron.add
Schedule a timer job
.cron.jobs
Table of scheduled jobs
.cron.start
If the q timer (\t) is 0, set it to .conf.QTIMER.
Inter-process Communication (IPC)
.ipc.conn
Establish / retrieve a connection to a named process
.ipc.ping
Sends a command asynchronously to a process, but closes the connection immediately afterwards. Useful for versions of kdb+ that have connection limits
.ipc.conns
Table of active connections and their metadata.
Log
error / warn / info / debug / trace
The log library has various print functions, in the following order of log level:
.log.error.log.warn.log.info.log.debug.log.trace
.log.fatal
Calls .log.error before exiting the process.
.log.setlevel
Filters outputs at this level and below e.g.
error, warn, and info messages will appear in the logs.
.log.setformat
Controls the output format of logs. The options are plain (default), logfmt and json.
.log.usefields
Use custom fields:
{} are calculated at log time.