You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: R/redshift-replace.R
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
#'
6
6
#' @param data a data frame
7
7
#' @param dbcon an RPostgres connection to the redshift server
8
-
#' @param tableName the name of the table to replace
8
+
#' @param table_name the name of the table to replace
9
9
#' @param split_files optional parameter to specify amount of files to split into. If not specified will look at amount of slices in Redshift to determine an optimal amount.
10
10
#' @param bucket the name of the temporary bucket to load the data. Will look for AWS_BUCKET_NAME on environment if not specified.
11
11
#' @param region the region of the bucket. Will look for AWS_DEFAULT_REGION on environment if not specified.
query_string<-"copy %s from 's3://%s/%s.' region '%s' truncatecolumns acceptinvchars as '^' escape delimiter '|' removequotes gzip ignoreheader 1 emptyasnull STATUPDATE ON COMPUPDATE ON %s;"
63
63
} else {
64
64
query_string<-"copy %s from 's3://%s/%s.' region '%s' truncatecolumns acceptinvchars as '^' escape delimiter '|' gzip ignoreheader 1 emptyasnull STATUPDATE ON COMPUPDATE ON %s;"
Copy file name to clipboardExpand all lines: R/redshift-upsert.R
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
#'
7
7
#' @param data a data frame
8
8
#' @param dbcon an RPostgres connection to the redshift server
9
-
#' @param tableName the name of the table to replace
9
+
#' @param table_name the name of the table to replace
10
10
#' @param split_files optional parameter to specify amount of files to split into. If not specified will look at amount of slices in Redshift to determine an optimal amount.
11
11
#' @param keys athis optional vector contains the variables by which to upsert. If not defined, the upsert becomes an append.
12
12
#' @param bucket the name of the temporary bucket to load the data. Will look for AWS_BUCKET_NAME on environment if not specified.
0 commit comments