Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
flox::pkgdb::PkgDbMixin< T > Struct Template Reference

Adds a single package database and optionally an associated flake to a state blob. More...

#include <command.hh>

Inheritance diagram for flox::pkgdb::PkgDbMixin< T >:
flox::pkgdb::DbPathMixin flox::command::InlineInputMixin flox::NixState flox::NixStoreMixin

Public Member Functions

void openPkgDb ()
 Open a flox::pkgdb::PkgDb connection using the command state's dbPath or flake value.
 
argparse::Argument & addTargetArg (argparse::ArgumentParser &parser)
 Add target argument to any parser to read either a flake-ref or path to an existing database.
 
void openPkgDb ()
 
void openPkgDb ()
 
- Public Member Functions inherited from flox::pkgdb::DbPathMixin
argparse::Argument & addDatabasePathOption (argparse::ArgumentParser &parser)
 
- Public Member Functions inherited from flox::command::InlineInputMixin
argparse::Argument & addSubtreeArg (argparse::ArgumentParser &parser)
 
argparse::Argument & addFlakeRefArg (argparse::ArgumentParser &parser)
 
const RegistryInputgetRegistryInput ()
 Return the parsed RegistryInput.
 
- Public Member Functions inherited from flox::NixState
 NixState ()=default
 Construct NixState using the systems default nix store.
 
 NixState (nix::ref< nix::Store > &store)
 Construct NixState from an existing store connection.
 
nix::ref< nix::EvalState > getState ()
 Lazily open a nix evaluator.
 
- Public Member Functions inherited from flox::NixStoreMixin
 NixStoreMixin (const NixStoreMixin &)=default
 
 NixStoreMixin (NixStoreMixin &&)=default
 
NixStoreMixinoperator= (const NixStoreMixin &)=default
 
NixStoreMixinoperator= (NixStoreMixin &&)=default
 
 NixStoreMixin (const nix::ref< nix::Store > &store)
 Construct NixStoreMixin from an existing store connection.
 
 NixStoreMixin ()
 Construct NixStoreMixin using the systems default nix store.
 
nix::ref< nix::Store > getStore ()
 Lazily open a nix store connection.
 

Public Attributes

std::shared_ptr< FloxFlakeflake
 
std::shared_ptr< T > db
 
- Public Attributes inherited from flox::pkgdb::DbPathMixin
std::optional< std::filesystem::path > dbPath
 

Additional Inherited Members

- Protected Member Functions inherited from flox::command::InlineInputMixin
void parseFlakeRef (const std::string &flakeRef)
 Fill registryInput by parsing a flake ref.
 

Detailed Description

template<pkgdb_typename T>
struct flox::pkgdb::PkgDbMixin< T >

Adds a single package database and optionally an associated flake to a state blob.


The documentation for this struct was generated from the following files: