# First we need to set an app connection
set_app_connection(
dbname = "vmc",
host = "apps-server.idems.international",
port = 5432,
user = "vmc",
password = "LSQkyYg5KzL747"
)
# Retrieve all data from the 'app_users' table
data_all_users <- get_user_data()
# Retrieve data from the 'app_users' table where 'app_user_id' is
# a specified ID.
valid_ids <- c("3e68fcda-d4cd-400e-8b12-6ddfabced348",
"223925c7-443a-411c-aa2a-a394f991dd52")
data_filtered_users <- get_user_data(
filter = TRUE,
filter_variable = "app_user_id",
filter_variable_value = valid_ids
)
# Retrieve user data within a specific date range
date_filtered_data <- get_user_data(
date_from = "2023-01-01",
date_to = "2024-08-18"
)
Run the code above in your browser using DataLab