mongo_uri_standard: Prepare MongoDB URI string, most commonly used format

View source: R/database.R

mongo_uri_standardR Documentation

Prepare MongoDB URI string, most commonly used format

Description

Formats the MongoDB URI string for use by package mongolite. In this case the 'standard' URI format is used.

Usage

mongo_uri_standard(user, password, host, replica_set = NA, port = NA)

Arguments

user

MongoDB user name.

password

MongoDB user password.

host

MongoDB host server.

replica_set

MongoDB replica set, if indicated.

port

MongoDB port.

Value

URI string.

Examples

## Not run: 
mongo_uri_standard(user = 'John', password = 'db_password_1234', host = 'server1234', port = NA)

## End(Not run)

simon-hans/CEDARS documentation built on Feb. 14, 2024, 3:16 a.m.