nw::NWSync

struct NWSync

Public Functions

NWSync()
explicit NWSync(const std::filesystem::path &path)
NWSync(const NWSync&) = delete
NWSync(NWSync&&) = default
~NWSync() = default
NWSyncManifest *get(StringView manifest)

Get a particular manifest as a container.

bool is_loaded() const noexcept

Get if NWSync was successfully loaded.

Vector<String> manifests()

Get list of all manifests.

size_t shard_count() const noexcept

Get the number of shards.

inline sqlite3 *meta()

Get a pointer to the nwsyncmeta database.

inline Vector<sqlite3_ptr> &shards()

List of all shards as active Sqlite3 connections.

NWSync &operator=(const NWSync&) = delete
NWSync &operator=(NWSync&&) = default