Module: vertx-mongo-js/mongo_client

Classes

MongoClient

Methods

(static) MongoClient.createNonShared(vertx, config) → {MongoClient}

Create a Mongo client which maintains its own data source.
Parameters:
Name Type Description
vertx Vertx the Vert.x instance
config Object the configuration
Source:
Returns:
the client
Type
MongoClient

(static) MongoClient.createShared(vertx, config) → {MongoClient}

Like MongoClient#createShared but with the default data source name
Parameters:
Name Type Description
vertx Vertx the Vert.x instance
config Object the configuration
Source:
Returns:
the client
Type
MongoClient