diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-05-03 09:38:34 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-05-03 09:59:07 +0300 |
commit | aad50a0827b5c74229153395f01e0eafdd64edf6 (patch) | |
tree | b8665053f47f25f3d6864c409a3bda85146704d1 /check | |
parent | 0b6adba069cd1300079c822b14832d690595cfb4 (diff) | |
download | obnam2-aad50a0827b5c74229153395f01e0eafdd64edf6.tar.gz |
refactor: add a type for plain integers we store in a database
This will make it easier to change later, if need be. We may want to
do that for various reasons, such as to save space. We may also want
to change things to only use integer types that SQLite can handle: u64
is currently not well handled by our database layer. However, as this
is a refactor, there's no change or fix to that.
FileId is now explicitly a database integer. This doesn't break
anything, for now, as the underlying integer type is still u64.
Also, change a couple of places where it will matter if DbInt changes
away from u64, and disable warnings for harmless conversions that
may cause warnings depending on what type DbInt has.
Sponsored-by: author
Diffstat (limited to 'check')
0 files changed, 0 insertions, 0 deletions