% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read-backends.R
\name{tl_read_sqlite}
\alias{tl_read_sqlite}
\title{Read from a SQLite database}
\usage{
tl_read_sqlite(path, query, ...)
}
\arguments{
\item{path}{Path to a SQLite database file (\code{.sqlite} or \code{.db}).}

\item{query}{A SQL query string.}

\item{...}{Additional arguments passed to \code{DBI::dbGetQuery()}.}
}
\value{
A \code{tidylearn_data} object containing the query results.
}
\description{
Opens a SQLite database file, executes a SQL query, and returns the result
as a \code{tidylearn_data} object. The connection is automatically closed
when done. Requires \pkg{DBI} and \pkg{RSQLite}.
}
\examples{
\donttest{
# data <- tl_read_sqlite("my_database.sqlite", "SELECT * FROM my_table")
}

}
