Read specific columns from database table
read_data_from_table.Rd
read_data_from_table()
provides an expedited way to query a select,
user-specified set of columns from a SQL database table.
Examples
if (FALSE) { # \dontrun{
# Establish connection to PostgreSQL database
con <- connect_to_db(env = "prod")
# Query only the "project_name" and "project_id" columns from the 'project'
# database table
read_data_from_table(
connection = con,
table_name = "project",
column_names = c("project_name", "project_id")
)
} # }