Commit 46fafbe8 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FLOW] optim ok.

parent f5ea2d15
Pipeline #125 canceled with stage
...@@ -24,12 +24,18 @@ import Gargantext.Database.Flow (flowCorpus) ...@@ -24,12 +24,18 @@ import Gargantext.Database.Flow (flowCorpus)
import Gargantext.Text.Parsers (FileFormat(CsvHalFormat)) import Gargantext.Text.Parsers (FileFormat(CsvHalFormat))
import Gargantext.Database.Utils (Cmd, connectGargandb, runCmdDevWith) import Gargantext.Database.Utils (Cmd, connectGargandb, runCmdDevWith)
import Gargantext.Database.Types.Node (NodeId) import Gargantext.Database.Types.Node (NodeId)
--import Gargantext.Database.Schema.User (insertUsers, gargantuaUser, simpleUser)
import Gargantext.API.Node () -- instances import Gargantext.API.Node () -- instances
import System.Environment (getArgs) import System.Environment (getArgs)
-- main :: IO () main :: IO ()
main = do main = do
[iniPath, name, corpusPath] <- getArgs [iniPath, name, corpusPath] <- getArgs
{-let createUsers :: Cmd ServantErr Int64
createUsers = insertUsers [gargantuaUser,simpleUser]
_ <- runCmdDevWith iniPath createUsers
-}
let cmd :: Cmd ServantErr NodeId let cmd :: Cmd ServantErr NodeId
cmd = flowCorpus CsvHalFormat corpusPath (cs name) cmd = flowCorpus CsvHalFormat corpusPath (cs name)
r <- runCmdDevWith iniPath cmd r <- runCmdDevWith iniPath cmd
......
...@@ -43,6 +43,7 @@ library: ...@@ -43,6 +43,7 @@ library:
- Gargantext.Database.Tree - Gargantext.Database.Tree
- Gargantext.Database.Types.Node - Gargantext.Database.Types.Node
- Gargantext.Database.Utils - Gargantext.Database.Utils
- Gargantext.Database.Schema.User
- Gargantext.Prelude - Gargantext.Prelude
- Gargantext.Text - Gargantext.Text
- Gargantext.Text.Context - Gargantext.Text.Context
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment