Skip to contents

If a basket (SMQ, SDG, ....) are requested, the version and a function to access the database must be provided. The function checks these requirements.

Usage

assert_db_requirements(
  version,
  version_arg_name,
  fun,
  fun_arg_name,
  queries,
  i
)

Arguments

version

Version provided by user

version_arg_name

Name of the argument providing the version

fun

Function provided by user

fun_arg_name

Name of the argument providing the function

queries

Queries provide by user

i

Index of query being checked

Value

An error is issued if version or fun is null.