R/Redshift.R

Defines functions Redshift

Documented in Redshift

#' Redshift driver/connection
#'
#' Use `drv = Redshift()` instead of `drv = Postgres()` to connect to an AWS Redshift cluster.
#' All methods in \pkg{RPostgres} and downstream packages can be called on such connections.
#' Some have different behavior for Redshift connections, to ensure better interoperability.
#'
#' @inheritParams Postgres
#' @export
Redshift <- function() {
  new("RedshiftDriver")
}

#' @export
#' @rdname Redshift
setClass("RedshiftDriver", contains = "PqDriver")

#' @export
#' @rdname Redshift
setClass("RedshiftConnection", contains = "PqConnection")

Try the RPostgres package in your browser

Any scripts or data that you put into this service are public.

RPostgres documentation built on Oct. 23, 2023, 1:06 a.m.