set_connection: Establish a connection to Cebrap's database

Description Usage Arguments Note

View source: R/connection.R

Description

set_connection() function is used to establish a connection with authentication to Cebrap's Brazilian Legislative Database using JDBC. It does so by starting the appropriate driver and sending login information to Cebrap's MS-SQL Server. Users can choose which version o Microsoft's JDBC to utilize and also have the option to save authentication info in the system path for improved security.

Usage

1
set_connection(login = NULL, password = NULL, driver = NULL, verbose = TRUE)

Arguments

login

User login

password

User password

driver

A string containing the version of JDBC driver to use or a path for a valid JDBC driver (with .jar extension). Pre-built valid options for JDBC drivers are:

  • jre8

  • jre11

  • jre15

verbose

Should the function display messages? Defaults to TRUE

Note

To use this and other functions from cebrapdata, users must have rJava and Java JDK installed.


nipe-cebrap/cebrapdata documentation built on Dec. 22, 2021, 2:17 a.m.