db_copy_to.TrinoConnection: 'copy_to()' for Trino

View source: R/dbplyr-db.R

db_copy_to.TrinoConnectionR Documentation

copy_to() for Trino

Description

Overrides dbplyr's default, which wraps the write in a transaction (dbBegin()). Whether that transaction could actually be rolled back depends on the catalog's connector, and ⁠CREATE TABLE⁠ itself is not something most connectors undo, so the write goes straight to dbWriteTable() instead, which already has its own way of playing it safe on overwrite = TRUE. temporary defaults to TRUE, as in the generic, which means the call fails unless the caller passes temporary = FALSE: Trino has no temporary tables.

Usage

db_copy_to.TrinoConnection(
  con,
  table,
  values,
  ...,
  overwrite = FALSE,
  types = NULL,
  temporary = TRUE,
  unique_indexes = NULL,
  indexes = NULL,
  analyze = TRUE,
  in_transaction = TRUE
)

Arguments

con

A TrinoConnection object.

table, values, overwrite, types, temporary

Passed to dbWriteTable().

unique_indexes, indexes, analyze, in_transaction, ...

Unused, for compatibility with the generic.

Value

table.


RTrino documentation built on Oct. 15, 2026, 5:08 p.m.