summaryrefslogtreecommitdiff
path: root/src/database/include/database.hpp
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-07-07 15:30:19 +1000
committerjacqueline <me@jacqueline.id.au>2023-07-07 15:30:19 +1000
commitb6e0e0dd4a177614797b6c6ac3b0c213d5a56f8a (patch)
tree1bf97a9455e27840c4c6d65bc9cc9832e8379dea /src/database/include/database.hpp
parent5af0ff2972023f35d8930ab3189cf04f6d9ff21b (diff)
parent39f7545cd5ef7a30bbd482f3579df7744c6b688d (diff)
downloadtangara-fw-b6e0e0dd4a177614797b6c6ac3b0c213d5a56f8a.tar.gz
Merge branch 'functional-playing'
Diffstat (limited to 'src/database/include/database.hpp')
-rw-r--r--src/database/include/database.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/database/include/database.hpp b/src/database/include/database.hpp
index 77a17b75..7ffc15b0 100644
--- a/src/database/include/database.hpp
+++ b/src/database/include/database.hpp
@@ -100,6 +100,15 @@ class Database {
auto GetTrackPath(TrackId id) -> std::future<std::optional<std::string>>;
+ auto GetTrack(TrackId id) -> std::future<std::optional<Track>>;
+
+ /*
+ * Fetches data for multiple tracks more efficiently than multiple calls to
+ * GetTrack.
+ */
+ auto GetBulkTracks(std::vector<TrackId> id)
+ -> std::future<std::vector<std::optional<Track>>>;
+
auto GetIndexes() -> std::vector<IndexInfo>;
auto GetTracksByIndex(const IndexInfo& index, std::size_t page_size)
-> std::future<Result<IndexRecord>*>;