MongoDB
This page describes how to create and maintain connections to your MongoDB database.
Last updated
This page describes how to create and maintain connections to your MongoDB database.
Last updated
Before ingesting your data from MongoDB, you must establish a connection to your database.
A MongoDB connection can be created as follows:
Some connection options are considered mutable, meaning that in some cases, you can run a SQL command to alter an existing MongoDB connection rather than create a new one.
To change the database you are connecting to but keep everything else the same without having to create an entirely new connection, you can run the following command:
If you no longer need a connection you can easily drop it with the following SQL command:
However, note that if existing tables or jobs depend upon the connection, the connection cannot be dropped.
Learn More
To discover which connection options are mutable, and to learn more about the options, please see the SQL command reference for .