pub unsafe extern "C" fn nix_store_open(
context: *mut nix_c_context,
uri: *const c_char,
params: *mut *mut *const c_char,
) -> *mut Store
Expand description
Open a nix store. Store instances may share state and resources behind the scenes.
§Arguments
context
[out] - Optional, stores error informationuri
[in] - @parblock URI of the Nix store, copied. IfNULL
, the store from the settings will be used. Note that"auto"
holds a strange middle ground, reading part of the general environment, but not all of it. It ignoresNIX_REMOTE
and thestore
option. For this reason,NULL
is most likely the better choice. For supported store URLs, see Store URL format in the Nix Reference Manual. @endparblock *params
[in] - @parblock optional, null-terminated array of key-value pairs, e.g. {{“endpoint”, “https://s3.local”}}. See Store Types in the Nix Reference Manual. @endparblock # Returns
a Store pointer, NULL in case of errors