Skip to contents

Validate strains recorded in the database

Usage

validate_strains_in_database(
  con,
  table_name,
  row_number_col,
  strain_col,
  error_select,
  error_if_exists = TRUE
)

Arguments

con

A database connection object.

table_name

The name of the table in the database that contains the user data.

row_number_col

The column name for row numbers.

strain_col

The column name for strains.

error_select

Select which column to report with errors. The column used here will depend on what data you want the user to see regarding strains.

error_if_exists

Logical. If TRUE, checks if the strain exists in the database. If FALSE, checks if it's absent.

Value

An instance of the ErrorData class or NULL.