mongo_uri_standard: Prepare MongoDB URI string, most commonly used format

Description Usage Arguments Value Examples

View source: R/database.R

Description

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

Usage

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

Arguments

user

MongoDB user name.

password

MongoDB user password.

host

MongoDB host server.

port

MongoDB port.

Value

URI string.

Examples

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

## End(Not run)

CEDARS documentation built on Feb. 7, 2021, 5:06 p.m.