% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/snapshot.R
\name{read_recent_snapshots}
\alias{read_recent_snapshots}
\title{Read recent snapshot history from the SQLite database}
\usage{
read_recent_snapshots(db_path, dataset_name, n = 10)
}
\arguments{
\item{db_path}{Character. Path to the SQLite database file.}

\item{dataset_name}{Character. Dataset name to filter on.}

\item{n}{Integer. Maximum number of records to return. Defaults to 10.}
}
\value{
A data frame with one row per run and columns including
  \code{id}, \code{run_timestamp}, \code{file_name}, \code{row_count},
  \code{overall_status}, \code{check_pass_count}, \code{check_warn_count},
  \code{check_fail_count}. Returns an empty data frame if the database does
  not exist or contains no records for the dataset.
}
\description{
Retrieves the \code{n} most recent run records for a given dataset from the
snapshot database, ordered newest-first.
}
\examples{
history <- read_recent_snapshots(tempfile(fileext = ".sqlite"), "starwars_csv")

}
