evdb_connect: Set connection to election violence database

View source: R/database_interactivity.R

evdb_connectR Documentation

Set connection to election violence database

Description

Set connection to election violence database

Usage

evdb_connect(
  host = "coders.victorianelectionviolence.uk",
  user = "data_writer",
  dbname = "evp",
  port = 3306,
  password_method = "ask"
)

Arguments

host

Location of database host.

user

Username for accessing the database.

dbname

Name of database.

port

Value of port connection.

password_method

Method of obtaining database password for specified user.

Value

The connection to the election violence database.

Examples

# for default connection to the database
con <- evdb_connect()
# using alternative method of entering password information
con <- evdb_connect(password_method="keyring")

gidonc/durhamevp documentation built on April 8, 2022, 10:31 a.m.