DB2 10.5 for Linux, UNIX, and Windows

JSON namespaces

Each DB2® JSON data store can support multiple JSON namespaces. JSON namespaces are conceptually similar to a MongoDB database and are represented as a SQL schema.

Namespaces are not case-sensitive by default. However, starting from DB2 Cancun Release 10.5.0.4, case-sensitivity is configured. For more information, go to Configuring JSON runtime parameters.

In the command-line interface, the namespace is set with the use command and referenced with the command prefix db.

Example

The following code sample represents a JSON namespace:
nosql>use media
Switched to schema MEDIA
nosql>db.getCollectionNames()
[]