声明
用法
adbc_statement_init(connection, ...)
adbc_statement_init_default(connection, options = NULL, subclass = character())
adbc_statement_release(statement)
adbc_statement_set_options(statement, options)
adbc_statement_get_option(statement, option)
adbc_statement_get_option_bytes(statement, option)
adbc_statement_get_option_int(statement, option)
adbc_statement_get_option_double(statement, option)
参数
- connection
- ...
驱动程序特定的选项。 对于默认方法,这些是被转换为字符串的命名值。
- options
一个命名的
character()
或list()
,其值被转换为字符串。- subclass
一个对象的扩展类,以便驱动程序可以在 R 级别指定对行为更精细的控制。
- statement
一个 adbc_statement
- option
一个特定的选项名称
示例
db <- adbc_database_init(adbc_driver_void())
con <- adbc_connection_init(db)
adbc_statement_init(con)
#> <adbc_statement at 0x564accb40040>
#> List of 1
#> $ connection:<adbc_connection at 0x564ac9debfa0>
#> List of 1
#> ..$ database:<adbc_database at 0x564acc57d080>
#> List of 1
#> .. ..$ driver:<adbc_driver_void> List of 2
#> .. .. ..$ driver_init_func:Class 'adbc_driver_init_func' <externalptr>
#> .. .. ..$ .child_count : int 0