diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-05-10 05:51:39 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-05-10 05:51:39 +0000 |
commit | 9d93e77ed08b086b705f3c6d52e6f936dc337ade (patch) | |
tree | b04294a85b4bcfb540107e39490018e8f42d5a6f /src/dbgen.rs | |
parent | 0b6adba069cd1300079c822b14832d690595cfb4 (diff) | |
parent | 4913347201f4d00ccaf959c53357241d5bc3f9e0 (diff) | |
download | obnam2-9d93e77ed08b086b705f3c6d52e6f936dc337ade.tar.gz |
Merge branch 'liw/integer-test' into 'main'
add tests for storing max integers (change FileId to signed)
Closes #188
See merge request obnam/obnam!231
Diffstat (limited to 'src/dbgen.rs')
-rw-r--r-- | src/dbgen.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dbgen.rs b/src/dbgen.rs index 8e5ece5..0053d4a 100644 --- a/src/dbgen.rs +++ b/src/dbgen.rs @@ -2,7 +2,7 @@ use crate::backup_reason::Reason; use crate::chunkid::ChunkId; -use crate::db::{Column, Database, DatabaseError, SqlResults, Table, Value}; +use crate::db::{Column, Database, DatabaseError, DbInt, SqlResults, Table, Value}; use crate::fsentry::FilesystemEntry; use crate::genmeta::{GenerationMeta, GenerationMetaError}; use crate::label::LabelChecksumKind; @@ -28,8 +28,8 @@ pub const DEFAULT_SCHEMA_MAJOR: VersionComponent = V0_0::MAJOR; /// Major schema versions supported by this version of Obnam. pub const SCHEMA_MAJORS: &[VersionComponent] = &[0, 1]; -/// An identifier for a file in a generation. -pub type FileId = u64; +/// An integer identifier for a file in a generation. +pub type FileId = DbInt; /// Possible errors from using generation databases. #[derive(Debug, thiserror::Error)] |