compare_sqlite_to_release: Compare local SQLite database to GitHub release hash

View source: R/github_release_utils.R

compare_sqlite_to_releaseR Documentation

Compare local SQLite database to GitHub release hash

Description

Compares the SHA256 hash of a local SQLite database file with the hash file stored in a GitHub release.

Usage

compare_sqlite_to_release(
  owner,
  repo,
  asset_name,
  local_sqlite_path,
  tag = NULL,
  token = Sys.getenv("GITHUB_PAT"),
  algo = "sha256"
)

Arguments

owner

Repository owner.

repo

Repository name.

asset_name

Name of the SQLite asset (used to derive hash filename).

local_sqlite_path

Path to local SQLite database.

tag

Optional release tag. If NULL, uses latest release.

token

Optional GitHub token. Defaults to Sys.getenv("GITHUB_PAT").

algo

Hash algorithm (default: "sha256").

Details

This avoids downloading the full database when checking for updates.

Value

TRUE if hashes match, FALSE otherwise.

Examples

## Not run: 
compare_sqlite_to_release(
  owner = "myuser",
  repo = "myrepo",
  asset_name = "database.sqlite",
  local_sqlite_path = "database.sqlite"
)

## End(Not run)

acdcquery documentation built on Feb. 19, 2026, 5:07 p.m.