% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/db_extension.R
\name{ddbs_extension_info}
\alias{ddbs_extension_info}
\title{Glimpse the status of a DuckDB extension}
\usage{
ddbs_extension_info(conn = NULL, extension = "spatial")
}
\arguments{
\item{conn}{A connection object to a DuckDB database. If \code{NULL}, the function
runs on a temporary DuckDB database.}

\item{extension}{name of the extension to inspect, default is "spatial"}
}
\value{
A one-row \code{tibble} with the extension's metadata (invisibly).
Called mainly for the glimpse printed as a side effect.
}
\description{
Retrieves the row from DuckDB's \code{duckdb_extensions()} catalog for a given
extension (the spatial extension by default) and prints a transposed
\code{\link[dplyr]{glimpse}} of it: whether it is installed and loaded, its
version, install path, description, and so on.
}
\examples{
\dontrun{
## load package
library(duckspatial)

# inspect the spatial extension on the default connection
ddbs_extension_info()

# or pass an explicit connection
conn <- ddbs_create_conn()
ddbs_extension_info(conn)
ddbs_stop_conn(conn)
}
}
