summaryrefslogtreecommitdiff
path: root/src/database/include/records.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-10-24 16:29:46 +1100
committerjacqueline <me@jacqueline.id.au>2023-10-24 16:29:46 +1100
commit2086ab09b8d89c27f524d82a68b9a2035ea02436 (patch)
treee84765353237e23487b9fe6ceae8faeb13b2a94d /src/database/include/records.hpp
parent4f8c127da926bc1e1724e7686a42d37c1da0f563 (diff)
downloadtangara-fw-2086ab09b8d89c27f524d82a68b9a2035ea02436.tar.gz
Implement incremental updates of database indexes
This makes rescanning the library *so* much faster. Yay!
Diffstat (limited to 'src/database/include/records.hpp')
-rw-r--r--src/database/include/records.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/database/include/records.hpp b/src/database/include/records.hpp
index e13c6568..09764ed0 100644
--- a/src/database/include/records.hpp
+++ b/src/database/include/records.hpp
@@ -52,6 +52,9 @@ auto EncodeHashKey(const uint64_t& hash) -> std::string;
*/
auto EncodeHashValue(TrackId id) -> std::string;
+/* Encodes a hash key for the specified hash. */
+auto EncodeTagHashKey(const uint64_t& hash) -> std::string;
+
/*
* Parses bytes previously encoded via EncodeHashValue back into a track id. May
* return nullopt if parsing fails.