跳到內容

ADBC PostgreSQL 驅動程式

用法

adbcpostgresql()

# S3 method for class 'adbcpostgresql_driver_postgresql'
adbc_database_init(driver, ..., uri)

# S3 method for class 'adbcpostgresql_database'
adbc_connection_init(database, ..., adbc.connection.autocommit = NULL)

# S3 method for class 'adbcpostgresql_connection'
adbc_statement_init(
  connection,
  ...,
  adbc.ingest.target_table = NULL,
  adbc.ingest.mode = NULL
)

參數

driver

一個 adbc_driver()

...

驅動程式專用選項。對於預設方法,這些是以字串轉換而成的具名值。

uri

資料庫路徑的 URI (例如,postgresql://127.0.0.1:1234/postgres?user=user&password=password)

database

一個 adbc_database

adbc.connection.autocommit

使用 FALSE 來停用預設的自動提交行為。

connection

一個 adbc_connection

adbc.ingest.target_table

用於大量插入的目標表格名稱。

adbc.ingest.mode

是否建立 (預設) 或附加。

範例

adbcpostgresql()
#> <adbcpostgresql_driver_postgresql> List of 2
#>  $ driver_init_func:Class 'adbc_driver_init_func' <externalptr> 
#>  $ .child_count    : int 0