get_connection: Creates connection object

Description Usage Arguments Value Examples

View source: R/connection.R

Description

The connection object stores url to conquery, credentials and dataset

Usage

1
get_connection(dataset, url = NULL, token = NULL)

Arguments

dataset

dataset to access

url

url to conquery

token

token to access dataset (use login function to add credentials)

Value

connection object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Step 1. Create a connection
connection <- get_connection("fdb_destatis")

# Step 2. Login with your username and password
## Normal login
connection <- login(connection)

## Login with predefined username
connection <- login(connection, user = "max.knobloch@ingef.de")

# Step 3. Validate login and permission on dataset
validate_connection(connection)

# Change dataset of connection
connection <- change_dataset(connection, "fdb_demo")

ingef/cqapiR documentation built on Dec. 20, 2021, 7:02 p.m.