unlock_user: Unlock User-Specific Records Removes any pending lock(s) for...

Description Usage Arguments Value Examples

View source: R/data_io.R

Description

Unlock User-Specific Records Removes any pending lock(s) for a specific user. Normally there should not be more than one record locked per user at any given time, but if there were more than one, i.e. DB corruption, all locks would be lifted at once.

Usage

1
unlock_user(uri_fun, user, password, host, port, database, end_user)

Arguments

uri_fun

Uniform resource identifier (URI) string generating function for MongoDB credentials.

user

MongoDB user name.

password

MongoDB user password.

host

MongoDB host server.

port

MongoDB port.

database

MongoDB database name.

end_user

CEDARS end user.

Value

No return value, unlocks alls records for a specific user in the database.

Examples

1
2
3
4
5
## Not run: 
unlock_user(uri_fun = mongo_uri_standard, user = 'John', password = 'db_password_1234',
host = 'server1234', port= NA, database = 'TEST_PROJECT', end_user = 'Mike')

## End(Not run)

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