diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-06-05 21:40:44 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-05 21:40:44 -0300 |
| commit | 5174fc25698cff33b03b5746bf1742e417988f7d (patch) | |
| tree | 232a3acdd9b458de481dbd5cbde889505168c8e8 /include/SqliteBackend.h | |
| parent | 85ed897de3676af866cc619dc700025820c02201 (diff) | |
| download | RNT-5174fc25698cff33b03b5746bf1742e417988f7d.tar.gz RNT-5174fc25698cff33b03b5746bf1742e417988f7d.zip | |
Project C interface, reroute FOL plan enums & format
Diffstat (limited to '')
| -rw-r--r-- | include/SqliteBackend.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/include/SqliteBackend.h b/include/SqliteBackend.h index e4cdf56..037d8e6 100644 --- a/include/SqliteBackend.h +++ b/include/SqliteBackend.h @@ -21,11 +21,9 @@ * via Merkle::Page which reads only the KV store. */ -namespace nt -{ - class SqliteBackend : public IStorageBackend - { - public: +namespace nt { + class SqliteBackend : public IStorageBackend { + public: /** * @brief Opens (or creates) a SQLite database at @p path. * @param path File path, or ":memory:" for an in-process database. @@ -37,7 +35,7 @@ namespace nt std::string Put(std::vector<uint8_t> value) override; std::optional<std::vector<uint8_t>> Get(const std::string& hash) override; - private: + private: sqlite3* db_ = nullptr; }; -} +} // namespace nt |
