Description Usage Arguments Details Value Author(s) See Also Examples
Using a connection to oliver_replica
, materialize flat files for use in various reports.
For now, the files are written in a feather
format in the Data
directory of the package.
This function is a wrapper for write_oliver_data
.
1 2 3 4 | create_flat_files(con, tables = c("report_businessmetrics_memberbreakdown",
"report_businessmetrics_provideractivity", "report_businessmetrics_rollup",
"report_pcvmetrics_servicereferrals", "report_pcvmetrics_visitreports",
"Organizations"), schemas = c(rep("static", 5), "staging"))
|
con |
An object of class |
tables |
A vector of table or view names that will be queried from the oliver replica and written to feather files in the |
schemas |
A vector of schema names associated with the |
The following dependencies are required in order to create a valid string as shown in the example below:
The presence of an open SSH tunnel to the oliver replica as partially decribed in the create_ssh_command
documentation.
A valid username and password on oliver_replica
. This can be set by contacting mattbro@uw.edu.
n feather files to the Data
directory of the package, where n is equal to length(tables)
.
Joe Mienko, mienkoja@uw.edu
load_flat_files
, write_oliver_data
1 2 3 4 5 6 7 8 9 10 11 12 | library(dplyr)
library(RPostgreSQL)
library(feather)
con <- src_postgres(
dbname = 'oliver_replica',
host = '127.0.0.1',
user = 'mienkoja',
password = 'mypassword'
)
create_flat_files(con = con)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.