% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/querychat_viz.R
\name{execute_ggsql}
\alias{execute_ggsql}
\title{Execute a pre-validated ggsql query against a DataSource}
\usage{
execute_ggsql(data_source, validated)
}
\arguments{
\item{data_source}{A querychat DataSource R6 object.}

\item{validated}{A pre-validated ggsql query (from \code{ggsql::ggsql_validate()}).
Must be a list with \verb{$sql} and \verb{$visual} fields.}
}
\value{
A \code{ggsql::Spec} R6 object (the writer-independent plot specification).
}
\description{
Executes the SQL portion through a DataSource (preserving database pushdown),
then feeds the result into a ggsql DuckDB reader to produce a Spec.
}
\keyword{internal}
