3 Description : Gargantext Import Corpus
4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
10 Import a corpus binary.
14 {-# LANGUAGE Strict #-}
18 import Gargantext.API.Dev (withDevEnv, runCmdDev)
19 import Gargantext.API.Prelude (GargError)
20 import Gargantext.API.Node () -- instances only
21 import Gargantext.Database.Admin.Types.Node
22 import Gargantext.Database.Admin.Types.Hyperdata
23 import Gargantext.Database.Query.Table.Node.UpdateOpaleye
24 import Gargantext.Database.Prelude (Cmd, )
25 import Gargantext.Prelude
26 import System.Environment (getArgs)
34 updateNodes :: Cmd GargError [Int64]
35 updateNodes = updateNodesWithType_
39 withDevEnv iniPath $ \env -> do
40 x <- runCmdDev env updateNodes