Skip to contents

Connections

Usage

adbc_connection_init(database, ...)

adbc_connection_init_default(database, options = NULL, subclass = character())

adbc_connection_set_options(connection, options)

adbc_connection_release(connection)

Arguments

database

An adbc_database.

...

Driver-specific options. For the default method, these are named values that are converted to strings.

options

A named character() or list() whose values are converted to strings.

subclass

An extended class for an object so that drivers can specify finer-grained control over behaviour at the R level.

connection

An adbc_connection

Value

An object of class 'adbc_connection'

Examples

db <- adbc_database_init(adbc_driver_void())
adbc_connection_init(db)
#> <adbc_connection> <pointer: 0x55dd7b401130> List of 2
#>  $ database:<adbc_database> <pointer: 0x55dd78aa2350> List of 2
#>   ..$ driver :<adbc_driver_void> List of 1
#>   .. ..$ driver_init_func:Class 'adbc_driver_init_func' <externalptr> 
#>   ..$ options: list()
#>  $ options : list()