% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{smart_collect}
\alias{smart_collect}
\title{Smart collect with size awareness}
\usage{
smart_collect(tbl, wrds, lazy = FALSE)
}
\arguments{
\item{tbl}{A \code{tbl_lazy} object from dbplyr.}

\item{wrds}{Database connection for row counting.}

\item{lazy}{If \code{TRUE}, return the lazy table without collecting.}
}
\value{
A tibble if collecting, or the lazy table if \code{lazy = TRUE}.
}
\description{
Internal function that collects a lazy table with warnings for large queries.
}
\keyword{internal}
