Skip to content

Namespaces

Namespaces are containers within the kdb+ workspace. Names defined in a namespace are unique only within the namespace.

Namespaces are a convenient way to divide an application between modules; also to construct and share library code.

Namespaces are identified by a leading dot in their names.

Kdb+ includes the following namespaces.

namespace contents
.h Functions for converting files into various formats and for web-console display
.j Functions for converting between JSON and q dictionaries
.Q Utility functions
.q Definitions of q keywords
.z System variables and functions, and hooks for callbacks

The linked pages document some of the objects in these namespaces. (Undocumented objects are part of the namespace infrastructure and should not be used in kdb+ applications.)

These and all single-character namespaces are reserved for use by Kx.