generic_connection: A setter/builder for generic connections

Description Usage Arguments Value

View source: R/generic_connection.R

Description

A setter/builder for generic connections

Usage

1
generic_connection(connection_name, build_connection_fun, test_connection_fun)

Arguments

connection_name

The name at which to store the connection in .package_env

build_connection_fun

A function with no arguments to build the connection

test_connection_fun

A function with the connection object (as stored as an argument to test the connection). Must return TRUE if the connection is valid and FALSE if it is invalid. If it is invalid, the connection will be rebuilt.

Value

The connection object


zapier/parquetr documentation built on Jan. 1, 2021, 1:50 p.m.