-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,30 @@ | ||
#' @name dbAppendTable | ||
#' @aliases dbAppendTableArrow | ||
#' Insert rows into a table from an Arrow stream | ||
#' | ||
#' The `dbAppendTableArrow()` method assumes that the table has been created | ||
#' beforehand, e.g. with [dbCreateTableArrow()]. | ||
#' The default implementation calls [dbAppendTable()] for each chunk | ||
#' of the stream. | ||
#' Use [dbAppendTable()] to append data from a data.frame. | ||
#' | ||
#' @inheritParams dbReadTable | ||
#' @param value An object coercible with [nanoarrow::as_nanoarrow_array_stream()]. | ||
#' @inheritParams sqlAppendTableTemplate | ||
#' | ||
#' @template methods | ||
#' @templateVar method_name dbAppendTableArrow | ||
#' | ||
#' @inherit DBItest::spec_arrow_append_table_arrow return | ||
#' @inheritSection DBItest::spec_arrow_append_table_arrow Failure modes | ||
#' @inheritSection DBItest::spec_arrow_append_table_arrow Specification | ||
#' | ||
#' @family DBIConnection generics | ||
#' @export | ||
#' @examplesIf requireNamespace("RSQLite", quietly = TRUE) && requireNamespace("nanoarrow", quietly = TRUE) | ||
#' con <- dbConnect(RSQLite::SQLite(), ":memory:") | ||
#' dbCreateTableArrow(con, "iris", iris[0, ]) | ||
#' dbAppendTableArrow(con, "iris", iris[1:5, ]) | ||
#' dbReadTable(con, "iris") | ||
#' dbDisconnect(con) | ||
setGeneric("dbAppendTableArrow", | ||
def = function(conn, name, value, ...) standardGeneric("dbAppendTableArrow") | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.