Nothing
#' DuckDB driver class
#'
#' Implements [DBIDriver-class].
#'
#' @aliases duckdb_driver
#' @keywords internal
#' @export
setClass("duckdb_driver", contains = "DBIDriver", slots = list(
database_ref = "externalptr",
config = "list",
dbdir = "character",
read_only = "logical",
bigint = "character"
))
#' DuckDB connection class
#'
#' Implements [DBIConnection-class].
#'
#' @aliases duckdb_connection
#' @keywords internal
#' @export
setClass("duckdb_connection", contains = "DBIConnection", slots = list(
conn_ref = "externalptr",
driver = "duckdb_driver",
debug = "logical",
timezone_out = "character",
tz_out_convert = "character",
reserved_words = "character",
bigint = "character"
))
duckdb_connection <- function(duckdb_driver, debug, bigint) {
out <- new(
"duckdb_connection",
conn_ref = rethrow_rapi_connect(duckdb_driver@database_ref),
driver = duckdb_driver,
debug = debug,
timezone_out = "UTC",
tz_out_convert = "with",
bigint = bigint
)
out@reserved_words <- get_reserved_words(out)
out
}
duckdb_random_string <- function(x) {
paste(sample(letters, 10, replace = TRUE), collapse = "")
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.