hnix-store-db-0.1.0.0: Nix store database support
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Nix.Store.DB.Query

Contents

Synopsis

Documentation

queryPathInfoEntity :: (MonadIO m, MonadLogger m) => StorePath -> SqlReadT m (Maybe (Entity ValidPath)) Source #

Query Entity ValidPath for StorePath if it exists.

queryPathInfo :: (MonadIO m, MonadLogger m) => StorePath -> SqlReadT m (Maybe ValidPath) Source #

Query ValidPath for StorePath if it exists.

queryReferencesEntity :: (MonadIO m, MonadLogger m) => Entity ValidPath -> SqlReadT m [Entity Ref] Source #

Query references as a list of Entity Refs for ValidPath using id of Entity ValidPath

queryReferences :: (MonadIO m, MonadLogger m) => Entity ValidPath -> SqlReadT m [Ref] Source #

Query references as a list of Refs for ValidPath by id of Entity ValidPath

queryReferrersEntity :: (MonadIO m, MonadLogger m) => StorePath -> SqlReadT m [Entity Ref] Source #

Query referrers as a list of Entity Refs for StorePath

queryReferrers :: (MonadIO m, MonadLogger m) => StorePath -> SqlReadT m [Ref] Source #

Query referrers as a list of Refs for StorePath

queryValidDerivers :: (MonadIO m, MonadLogger m) => StorePath -> SqlReadT m [(Text, StorePath)] Source #

Query valid derivers as a list of (Text, StorePath)s for some StorePath

queryDerivationOutputs :: (MonadIO m, MonadLogger m) => Entity ValidPath -> SqlReadT m [(Text, StorePath)] Source #

Query derivation outputs as a list of (Text, StorePath)s for some ValidPath by its id

queryPathFromHashPart :: (MonadIO m, MonadLogger m) => StoreDir -> StorePathHashPart -> SqlReadT m (Maybe StorePath) Source #

Query StorePath from its hash part

queryValidPathsEntity :: (MonadIO m, MonadLogger m) => SqlReadT m [Entity ValidPath] Source #

Query all valid paths as a list of Entity ValidPaths

queryValidPaths :: (MonadIO m, MonadLogger m) => SqlReadT m [ValidPath] Source #

Query all valid paths as a list of ValidPaths

Testing

queryAllRefsEntity :: (MonadIO m, MonadLogger m) => SqlReadT m [Entity Ref] Source #

Query all references as a list of Entity Refs

queryAllRefs :: (MonadIO m, MonadLogger m) => SqlReadT m [Ref] Source #

Query all references as a list of Refs

queryAllDerivationOutputsEntity :: (MonadIO m, MonadLogger m) => SqlReadT m [Entity DerivationOutput] Source #

Query all derivation outputs as a list of Entity DerivationOutputs

queryAllDerivationOutputs :: (MonadIO m, MonadLogger m) => SqlReadT m [DerivationOutput] Source #

Query all derivation outputs as a list of DerivationOutputs

queryOneValidDerivationEntity :: (MonadIO m, MonadLogger m) => SqlReadT m (Maybe (Entity ValidPath)) Source #

Query one random derivation as an Entity ValidPath

queryOneValidDerivation :: (MonadIO m, MonadLogger m) => SqlReadT m (Maybe ValidPath) Source #

Query one random derivation as a ValidPath