diff options
Diffstat (limited to 'src/db/snapshots.rs')
| -rw-r--r-- | src/db/snapshots.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/db/snapshots.rs b/src/db/snapshots.rs index 754d7b7..e227eca 100644 --- a/src/db/snapshots.rs +++ b/src/db/snapshots.rs @@ -47,6 +47,11 @@ pub struct SnapshotRow { pub files_json: String, } +/// Find a snapshot by the commit it was taken at. +/// +/// Test-tier only: detection looks snapshots up by id, and nothing in the +/// crate performs a lookup by commit. +#[cfg(feature = "test-support")] pub fn snapshot_by_commit(db: &Db, pkgbase_id: i64, commit: &str) -> Result<Option<SnapshotRow>> { db.read(|c| { c.query_row( |
