qryflow_parse: Parse a SQL workflow into tagged chunks

View source: R/qryflow.R

qryflow_parseR Documentation

Parse a SQL workflow into tagged chunks

Description

qryflow_parse() reads a SQL workflow file or character vector and parses it into discrete tagged chunks based on ⁠@query⁠, ⁠@exec⁠, and other custom markers.

Usage

qryflow_parse(sql)

Arguments

sql

A file path to a SQL workflow file, or a character vector containing SQL lines.

Details

This function is used internally by qryflow_run(), but can also be used directly to preprocess or inspect the structure of a SQL workflow.

Value

An object of class qryflow_workflow, which is a structured list of SQL chunks and metadata.

See Also

qryflow(), qryflow_run(), qryflow_execute()

Examples

filepath <- example_sql_path("mtcars.sql")

parsed <- qryflow_parse(filepath)

qryflow documentation built on Aug. 8, 2025, 7:39 p.m.