Install the compress
function to a database
install_compress_function.Rd
When running the pipeline,
we compress identical rows of the table using the version columns.
This plpgsql function in compress_func_string
does that work for us.
This function adds the compress
function
to the database at conn
.
Usage
install_compress_function(
conn,
compress_func_string = readr::read_file(system.file("extdata", "compress.sql", package
= "PFUPipelineTools"))
)
Value
The number of rows affected by adding the function to the
database at conn
,
which should always be 0
.
Details
If compress
is already installed into the the database at conn
,
only the user who previously installed compress
can update it.
To remove compress
, see remove_compress_function()
.