From eedd1c6b6a612daeb0e4e154bc0200df6826aa1d Mon Sep 17 00:00:00 2001 From: MetroWind Date: Fri, 12 Sep 2025 14:41:42 -0700 Subject: Implement items() and addLink() in data source. --- src/data.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/data.hpp') diff --git a/src/data.hpp b/src/data.hpp index dc64e6f..006f1f2 100644 --- a/src/data.hpp +++ b/src/data.hpp @@ -43,7 +43,8 @@ public: // help with database migration. virtual mw::E getSchemaVersion() const = 0; - virtual std::vector items(std::optional parent) = 0; + virtual mw::E> items(std::optional parent) = 0; + virtual mw::E addLink(LinkItem&& link) = 0; protected: virtual mw::E setSchemaVersion(int64_t v) const = 0; @@ -62,6 +63,9 @@ public: mw::E getSchemaVersion() const override; + mw::E> items(std::optional parent) override; + mw::E addLink(LinkItem&& link) override; + // Do not use. DataSourceSQLite() = default; -- cgit v1.2.3-70-g09d2