powered by
Compares the SHA256 hash of a local SQLite database file with the hash file stored in a GitHub release.
compare_sqlite_to_release( owner, repo, asset_name, local_sqlite_path, tag = NULL, token = Sys.getenv("GITHUB_PAT"), algo = "sha256" )
TRUE if hashes match, FALSE otherwise.
Repository owner.
Repository name.
Name of the SQLite asset (used to derive hash filename).
Path to local SQLite database.
Optional release tag. If NULL, uses latest release.
Optional GitHub token. Defaults to Sys.getenv("GITHUB_PAT").
Sys.getenv("GITHUB_PAT")
Hash algorithm (default: "sha256").
"sha256"
This avoids downloading the full database when checking for updates.
if (FALSE) { compare_sqlite_to_release( owner = "myuser", repo = "myrepo", asset_name = "database.sqlite", local_sqlite_path = "database.sqlite" ) }
Run the code above in your browser using DataLab