Learn R Programming

DIZutils (version 0.0.13)

check_if_table_exists: Check if a database table exists.

Description

Check if a database table exists.

Usage

check_if_table_exists(db_con, table_name)

Arguments

db_con

A DBI database connection. See `db_connection()` for details.

table_name

(String) The name of the table or view to be checked.

Value

True, if the table exists, false otherwise.

Examples

Run this code
# NOT RUN {
res <- DIZutils::check_if_table_exists(
  db_con = DIZutils::db_connection(...),
  table_name = "my_table"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab