Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
log-store.hh
Go to the documentation of this file.
1#pragma once
3
4#include "store-api.hh"
5
6
7namespace nix {
8
9struct LogStore : public virtual Store
10{
11 inline static std::string operationName = "Build log storage and retrieval";
12
17 std::optional<std::string> getBuildLog(const StorePath & path);
18
19 virtual std::optional<std::string> getBuildLogExact(const StorePath & path) = 0;
20
21 virtual void addBuildLog(const StorePath & path, std::string_view log) = 0;
22
23 static LogStore & require(Store & store);
24};
25
26}
Definition path.hh:27
ChunkedVector< std::string, 8192 > store
Definition lexer.l:1011
Definition log-store.hh:10
std::optional< std::string > getBuildLog(const StorePath &path)
Definition log-store.cc:5