gargantext-0.0.7.1.5.3: Search, map, share
Copyright(c) CNRS 2017-Present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gargantext.Database.Query.Tree.Root

Description

 
Synopsis

Documentation

data MkCorpusUser #

Datatype for the getOrMkRootWithCorpus. There are only 3 possibilities: - User is userMaster and then there is no corpus name - User is a normal user and then we pass corpus name - User is a normal user and then we pass corpus ids

Instances

Instances details
Show MkCorpusUser # 
Instance details

Defined in Gargantext.Database.Query.Tree.Root

Eq MkCorpusUser # 
Instance details

Defined in Gargantext.Database.Query.Tree.Root

mkCorpus :: (HasNodeError err, MkCorpus a) => CorpusName -> Maybe a -> RootId -> UserId -> DBCmd err (UserId, RootId, CorpusId) #

Helper function for getOrMkRootWithCorpus.

mkRoot :: HasNodeError err => User -> DBCmd err [RootId] #