Skip to content

4.10. Additional Standard Packages

The following modules are also shipped in stdpkg. They have focused source interfaces and examples rather than separate API manuals. Check each module's public declarations for exact signatures and supported platforms.

For timestamps, date/time formatting, and sleeps, see the dedicated time package manual. For child processes and environment variables, see the shell package manual.

Import Purpose Source or example
math Mathematical functions backed by the native math library. math.dq
strparse Cursor-based text parsing. test_strparse.dq
collections/strstrmap String-to-string map. strstrmap.dq
db Shared database abstractions. db.dq
sqlite3 SQLite binding using the SQLite library. sqlite_test.dq
mysql MySQL client binding. mysql_test.dq
socket Low-level socket declarations. socket.dq
libc/stdio C standard I/O declarations and stream helpers. stdio.dq

4.10.1 Native Dependencies

A DQ import supplies declarations and code; it does not install a native library. Database applications need the matching client development libraries at link time and the corresponding shared libraries at runtime. For cross targets, the libraries must match the target ABI and be available in the selected sysroot or linker search paths.

Use C Interoperability when adding bindings, and Project Files for explicit linker inputs. For networking applications, start with the higher-level nanonet package.