% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/advanced.R
\name{mdb_array}
\alias{mdb_array}
\title{Export Table As List Columns (mdb-array mimic)}
\usage{
mdb_array(path, table, columns = NULL, n = -1L)
}
\arguments{
\item{path}{Path to \code{.mdb}/\code{.accdb} file.}

\item{table}{Table name.}

\item{columns}{Optional character vector of columns.}

\item{n}{Optional row limit (\verb{LIMIT n}).}
}
\value{
Named list, one entry per selected column.
}
\description{
\code{mdb-array(1)} emits C source; this wrapper returns a named R list of columns
while keeping equivalent database/table inputs.
}
\examples{
db <- mdbr:::.mdb_example_nwind_path()
if (nzchar(db)) {
  arr <- mdb_array(db, "Products", columns = c("ProductID", "ProductName"), n = 2)
  str(arr)
}
}
