語句
用法
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 0x55c23b158940>
#> List of 1
#> $ connection:<adbc_connection at 0x55c23c6316f0>
#> List of 1
#> ..$ database:<adbc_database at 0x55c23bf86240>
#> List of 1
#> .. ..$ driver:<adbc_driver_void> List of 2
#> .. .. ..$ driver_init_func:Class 'adbc_driver_init_func' <externalptr>
#> .. .. ..$ .child_count : int 0