% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/duckhts.R
\name{rduckhts_load}
\alias{rduckhts_load}
\title{Load DuckHTS Extension}
\usage{
rduckhts_load(con, extension_path = NULL)
}
\arguments{
\item{con}{A DuckDB connection object.}

\item{extension_path}{Optional path to the DuckHTS extension file. If
\code{NULL}, uses the extension bundled with Rduckhts.}
}
\value{
\code{TRUE} if the extension was loaded successfully.
}
\description{
Loads the DuckHTS extension into an existing DuckDB connection. This must be
called before using HTS reader functions on a connection not created by
\code{rduckhts_connect()}.
}
\details{
The connection must permit unsigned extension loading. With current versions
of the \pkg{duckdb} R package, its driver must also permit extension loading.
Prefer \code{rduckhts_connect()} when Rduckhts owns the connection.
}
\examples{
con <- rduckhts_connect()
DBI::dbDisconnect(con, shutdown = TRUE)

}
