语句
用法
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()的对象,其值被转换为字符串。- 子类
对象的扩展类,以便驱动程序可以在 R 级别对行为进行更细粒度的控制。
- 语句
一个 adbc_statement
- option
一个特定的选项名称
示例
db <- adbc_database_init(adbc_driver_void())
con <- adbc_connection_init(db)
adbc_statement_init(con)
#> <adbc_statement at 0x55f87f7c7ec0>
#> List of 1
#> $ connection:<adbc_connection at 0x55f87f84bbe0>
#> List of 1
#> ..$ database:<adbc_database at 0x55f87fe00d90>
#> List of 1
#> .. ..$ driver:<adbc_driver_void> List of 4
#> .. .. ..$ load_flags : int 15
#> .. .. ..$ driver_init_func:Class 'adbc_driver_init_func' <externalptr>
#> .. .. ..$ .child_count : int 0
#> .. .. ..$ version : int 1001000