Wyn Enterprise User Guide

Wyn Enterprise: MongoDB Data Provider

To create a MongoDB data source in Wyn Enterprise, follow these steps.

  1. On the Resource Portal, navigate to Create (+) > Create Data Source.

  2. Select MongoDB in the data source list on the left or in the icon view on the right.

  3. Fill in the database configuration information for the selected data source.

Field Description
Name The name for the data source that you want to specify.
Server A CPU name.
Port A port number.
User A user name to connect to the MongoDB database.
Password A password of the MongoDB user.
Database Enter the server MongoDB instance name.
Use Configuration String (Advanced) If you check this option, you only need to fill in this item and the name of the data source. The format of the connection string is:
Server= myServer; Port=myPort; Database=myDB; User=myUser; Password=myPassword; SIP=SchemaInferPolicy; Use Cache=True; Timeout=180; where SIP, Use Cache, and Timeout are optional parameters.
-SIP: Indicates that the data type of this column is inferred from the data in the first few rows, the default is 0.
-Use Cache: The default value is true, which means that the result of this statement will be cached at the second level.
-Timeout: Timeout exit time, the default value is 180 seconds.
In addition, you can use the user context attribute in the string to filter data, in the format "@{User context name}" such as "@{DBName}". See User Context for details.
  1. Click Create.

After the successful creation, you can view the added data source in the Categories tab of the Resource Portal.