The folllowing functions are convenient wrappers around influx_post
and influx_query
(show_users and show grants).
create_user()
: creates a new user
drop_user()
: drops an existing user
grant_privileges()
: grant privileges to an existing users
revoke_privileges()
: revoke privileges to an existing users
show_users()
: show all users
show_grants()
: show grants of an user
create_user(con, username, password)drop_user(con, username)
grant_privileges(con, privilege = c("READ", "WRITE", "ALL"), db, username)
revoke_privileges(con, privilege = c("READ", "WRITE", "ALL"), db, username)
show_users(con)
show_grants(con, username)
An influx_connection
object (s. influx_connection
).
The username to be used.
The password to be used.
Specifies the user privilege.
Sets the target database.
A tibble containing post results in case of an error (or message).
Otherwise NULL (invisibly). show_users()
and show_grants()
return a tibble.