Skip to contents

Uses OHDSI's SqlRender (render() -> translate(targetDialect = "duckdb") -> splitSql()), the reference implementation for the OHDSI SQL in cohorts/.

Usage

run_cohort_sql(con, sql_or_path, ...)

Arguments

con

A DuckDB DBI connection.

sql_or_path

Path to a .sql file, or the SQL text itself.

...

Named parameters rendered into @name placeholders.

Value

Invisibly, NULL.