You can create, modify, or remove JSON documents that are
stored in a DB2® database
The DB2 NoSQL capability
allows JSON documents that are stored in a DB2 database server to be manipulated in the
following three ways:
- The DB2 JSON capability
for Java™ API provides a set
of methods for storing, retrieving, and manipulating JSON documents.
These methods can be called by Java applications
directly through the API to work with the documents in the database.
Since DB2 database server is
the data store, this component translates the operations that are
requested in the method invocations into SQL statements. For details,
see DB2 NoSQL JSON Javadoc.
- The DB2 JSON command line
is a command shell for running administrative commands for JSON document
collections and for running queries and update operations against
the JSON collections. It is similar to the DB2 CLP interface.
- The DB2 JSON for JSON wire
listener is a server application that intercepts the Mongo wire protocol.
It acts as a mid-tier gateway server between MongoDB applications
and DB2. It uses the DB2 NoSQL for JSON API to interface
with the DB2 database server
as the data store. You can run a MongoDB application that is written
in application programming languages (such as Java, NodeJS, PHP, and Ruby), or can use the
MongoDB CLI to communicate with the DB2 server.