From 3dc0989c7fd6d3d508fa9c5e5269dc45396c09e9 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 21 Mar 2024 12:57:11 +1100 Subject: fix db key prefix format, and use per-file modification times --- src/database/include/database.hpp | 5 +---- src/database/include/records.hpp | 2 ++ 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/database/include') diff --git a/src/database/include/database.hpp b/src/database/include/database.hpp index 0aec4c44..35b76a13 100644 --- a/src/database/include/database.hpp +++ b/src/database/include/database.hpp @@ -35,7 +35,7 @@ namespace database { -const uint8_t kCurrentDbVersion = 5; +const uint8_t kCurrentDbVersion = 6; struct SearchKey; class Record; @@ -107,9 +107,6 @@ class Database { ITagParser& tag_parser, locale::ICollator& collator); - auto dbGetLastUpdate() -> std::pair; - auto dbSetLastUpdate(std::pair) -> void; - auto dbMintNewTrackId() -> TrackId; auto dbEntomb(TrackId track, uint64_t hash) -> void; diff --git a/src/database/include/records.hpp b/src/database/include/records.hpp index 09764ed0..87034059 100644 --- a/src/database/include/records.hpp +++ b/src/database/include/records.hpp @@ -21,6 +21,8 @@ namespace database { +auto EncodePathKey(std::string_view path) -> std::string; + /* * Returns the prefix added to every TrackData key. This can be used to iterate * over every data record in the database. -- cgit v1.2.3