Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
flox::NixStoreMixin Class Reference

Mixin which provides a lazy handle to a nix store connection. More...

#include <nix-state.hh>

Inheritance diagram for flox::NixStoreMixin:
flox::FloxFlakeInputFactory flox::NixState flox::pkgdb::PkgDbRegistryMixin flox::resolver::Environment flox::EvalCommand flox::ReplCommand flox::command::InlineInputMixin flox::pkgdb::PkgDbMixin< PkgDbReadOnly > flox::pkgdb::PkgDbMixin< T > flox::pkgdb::ScrapeCommand flox::pkgdb::GetCommand

Public Member Functions

 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.
 

Private Attributes

std::shared_ptr< nix::Store > store
 

Detailed Description

Mixin which provides a lazy handle to a nix store connection.

Constructor & Destructor Documentation

◆ NixStoreMixin()

flox::NixStoreMixin::NixStoreMixin ( const nix::ref< nix::Store > &  store)
inlineexplicit

Construct NixStoreMixin from an existing store connection.

This may be useful if you wish to avoid a non-default store.

Parameters
storeAn open nix store connection.

Member Function Documentation

◆ getStore()

nix::ref< nix::Store > flox::NixStoreMixin::getStore ( )
inline

Lazily open a nix store connection.

Connection remains open for lifetime of object.

Member Data Documentation

◆ store

std::shared_ptr<nix::Store> flox::NixStoreMixin::store
private

nix store connection.


The documentation for this class was generated from the following file: