MongoDB connection
The mongo
function creates a mongo
object using the Database Toolbox™ interface for MongoDB®. With the object, you can connect to MongoDB stored on one or more database servers.
First, you must install the Database Toolbox interface for MongoDB. For details, see Database Toolbox Interface for MongoDB Installation.
Using the mongo
object, you can manage collections in the database.
You can also query documents stored in a collection and import them into the MATLAB® workspace. From MATLAB, you can export MATLAB tables, structures, and objects into MongoDB. For details about MongoDB, see the MongoDB Manual.
specifies additional options using one or more name-value pair arguments. For
example, conn
= mongo(server
,port
,dbname
,Name,Value
)'SSLEnabled',true
creates an SSL-enabled connection
to MongoDB.