Holds a special list of individual connector objects for consistent use of connections in your project.
Arguments
- ...
Named individual connector objects
Examples
# Create connectors objects
con <- connectors(
sdtm = connector_fs$new(path = tempdir()),
adam = connector_dbi$new(drv = RSQLite::SQLite())
)
# Print for overview
con
#> <connectors>
#> $sdtm <connector_fs>
#> $adam <connector_dbi>
# Print the individual connector for more information
con$sdtm
#> <connector_fs>
#> Inherits from: <connector>
#> Registered methods:
#> • `create_directory_cnt.connector_fs()`
#> • `download_cnt.connector_fs()`
#> • `list_content_cnt.connector_fs()`
#> • `read_cnt.connector_fs()`
#> • `remove_cnt.connector_fs()`
#> • `remove_directory_cnt.connector_fs()`
#> • `upload_cnt.connector_fs()`
#> • `write_cnt.connector_fs()`
#> Specifications:
#> • path: /tmp/RtmppXBEtZ
con$adam
#> <connector_dbi>
#> Inherits from: <connector>
#> Registered methods:
#> • `disconnect_cnt.connector_dbi()`
#> • `list_content_cnt.connector_dbi()`
#> • `read_cnt.connector_dbi()`
#> • `remove_cnt.connector_dbi()`
#> • `tbl_cnt.connector_dbi()`
#> • `write_cnt.connector_dbi()`
#> Specifications:
#> • conn: <SQLiteConnection>