% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/query.R
\name{cloudos.sql_validate}
\alias{cloudos.sql_validate}
\title{Validate SQL Query}
\usage{
cloudos.sql_validate(profilename = "", sql = "")
}
\arguments{
\item{profilename}{Character. Name of the configured profile to use. If empty or NULL, uses the default profile.}

\item{sql}{Character. SQL query to validate.}
}
\value{
List with validation results including isValid, tableReferences, and columnReferences.
}
\description{
Validates SQL syntax and references before execution.
}
\examples{
\dontrun{
  # Validate a SQL query
  validation <- cloudos.sql_validate(
    profilename = "production",
    sql = "SELECT person_id FROM person WHERE year_of_birth >= 1960"
  )
  
  if (validation$isValid) {
    cat("SQL is valid\n")
    cat("Tables:", paste(validation$tableReferences, collapse = ", "), "\n")
  } else {
    cat("SQL is invalid:", validation$message, "\n")
  }
}
}
