NAH 3.0.0
Native Application Host - Library API Reference
Loading...
Searching...
No Matches
nah_store.h File Reference
#include <nlohmann/json.hpp>
#include <filesystem>
#include <fstream>
#include <cstdint>
#include <cstdio>
#include <random>
#include <string>
#include <vector>
#include <fcntl.h>
#include <sys/file.h>
#include <unistd.h>

Go to the source code of this file.

Classes

class  nah::store::detail::Lock
 
struct  nah::store::Result
 
class  nah::store::Store
 

Namespaces

namespace  nah
 
namespace  nah::store
 
namespace  nah::store::detail
 

Enumerations

enum class  nah::store::Error {
  nah::store::none , nah::store::busy , nah::store::invalid_path , nah::store::already_exists ,
  nah::store::invalid_journal , nah::store::io_error
}
 

Functions

bool nah::store::detail::allowed_pair (const fs::path &payload, const fs::path &record)
 
bool nah::store::detail::rename_durable (const fs::path &from, const fs::path &to, std::string &error)
 
bool nah::store::detail::safe_relative (const fs::path &path)
 
bool nah::store::detail::sync_directory (const fs::path &path, std::string &error)
 
bool nah::store::detail::sync_file (const fs::path &path, std::string &error)
 
bool nah::store::detail::sync_tree (const fs::path &root, std::string &error)
 
std::string nah::store::detail::unique_id ()
 
bool nah::store::detail::write_file (const fs::path &path, const std::string &value, std::string &error)