set_credentials: Set the credentials to connect to SQL DB.

Description Usage Arguments

View source: R/connect_db.R

Description

Save dialect, host, port, db_name, user and app in config file. Save password in system keyring. It will ask the db user password interactively.

Usage

1
2
3
4
5
6
7
8
set_credentials(
  alias = "rsqlauthandle",
  dialect = "postgresql",
  host = "localhost",
  port = "5432",
  user,
  db_name
)

Arguments

alias

Service alias

dialect

The dialect to config (...)

host

Str. Host url of DB server.

port

Str. Port number.

user

Str. User.

db_name

Str. Name of database to conect.


mentoldo/rsqlauthandle documentation built on Dec. 21, 2021, 4:57 p.m.