Flox Package Database 1
CRUD Operations on Nix Package Metadata
|
Mixin which provides a lazy handle to a nix
store connection.
More...
#include <nix-state.hh>
Public Member Functions | |
NixStoreMixin (const NixStoreMixin &)=default | |
NixStoreMixin (NixStoreMixin &&)=default | |
NixStoreMixin & | operator= (const NixStoreMixin &)=default |
NixStoreMixin & | operator= (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 |
Mixin which provides a lazy handle to a nix
store connection.
|
inlineexplicit |
Construct NixStoreMixin
from an existing store connection.
This may be useful if you wish to avoid a non-default store.
store | An open nix store connection. |
|
inline |
Lazily open a nix
store connection.
Connection remains open for lifetime of object.
|
private |
nix
store connection.