summaryrefslogtreecommitdiff
path: root/src/database/include
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-03-21 12:57:11 +1100
committerjacqueline <me@jacqueline.id.au>2024-03-21 12:57:11 +1100
commit3dc0989c7fd6d3d508fa9c5e5269dc45396c09e9 (patch)
tree3e7ddaecaea99d3afb906ad22092dbd796a1abb6 /src/database/include
parentdadac304dd930ddf4c5aebcc069c5d9f881b2b60 (diff)
downloadtangara-fw-3dc0989c7fd6d3d508fa9c5e5269dc45396c09e9.tar.gz
fix db key prefix format, and use per-file modification times
Diffstat (limited to 'src/database/include')
-rw-r--r--src/database/include/database.hpp5
-rw-r--r--src/database/include/records.hpp2
2 files changed, 3 insertions, 4 deletions
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<uint16_t, uint16_t>;
- auto dbSetLastUpdate(std::pair<uint16_t, uint16_t>) -> 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.