dbCreateUserEM: User Creation

Description Usage Arguments Value Examples

View source: R/AmerAssocIndividInvestorsAAII.R

Description

Create a user exists in the database.

Usage

1
2
3
4
5
6
7
8
9
dbCreateUserEM(
  connName,
  user,
  attributes = c("LOGIN"),
  password = user,
  env,
  display = TRUE,
  exec = TRUE
)

Arguments

connName

String. Default is "connEM". Contains the name of the variable that contains the name of the "connection" in the environment "env".

user

String. Required. Potential user in the database.

attributes

vector of Strings. User attributes.

password

String. Defaults to "user".

env

Environment. Default is the .Global environment. This is the environment to return the connection object "connEM".

display

Logical. Whether to display the query (defaults to TRUE).

exec

Logical. Whether to execute the query (defaults to TRUE).

Value

TRUE(success) or Error(failure)

Examples

1
2
3
4
5
6
## Not run: 
# Does not check if the user already exists
# A user who manages a [future] "personal" database . . .
dbCreateUserEM(user = "r_user", attributes = c("LOGIN", "CREATEDB", "CREATEROLE"))

## End(Not run)

AndreMikulec/econModel documentation built on June 30, 2021, 9:48 a.m.