
Validate That a SQL String Is Strictly Read-Only and Free of File-Access Functions
Source:R/cohort-nl.R
validate_readonly_sql.RdEnforces an unbypassable read-only SQL policy for natural-language cohort
queries against a dicom_index_build() index. Rejects SQL comments, multi-statement
semicolons, DDL/DML/admin statements, and DuckDB host-file reader functions.
Value
Invisibly returns TRUE if valid; otherwise aborts via cli::cli_abort().