Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
145
Issues
145
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
46fafbe8
Commit
46fafbe8
authored
Jan 14, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FLOW] optim ok.
parent
f5ea2d15
Pipeline
#125
canceled with stage
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
Main.hs
bin/gargantext-import/Main.hs
+7
-1
package.yaml
package.yaml
+1
-0
No files found.
bin/gargantext-import/Main.hs
View file @
46fafbe8
...
...
@@ -24,12 +24,18 @@ import Gargantext.Database.Flow (flowCorpus)
import
Gargantext.Text.Parsers
(
FileFormat
(
CsvHalFormat
))
import
Gargantext.Database.Utils
(
Cmd
,
connectGargandb
,
runCmdDevWith
)
import
Gargantext.Database.Types.Node
(
NodeId
)
--import Gargantext.Database.Schema.User (insertUsers, gargantuaUser, simpleUser)
import
Gargantext.API.Node
()
-- instances
import
System.Environment
(
getArgs
)
--
main :: IO ()
main
::
IO
()
main
=
do
[
iniPath
,
name
,
corpusPath
]
<-
getArgs
{-let createUsers :: Cmd ServantErr Int64
createUsers = insertUsers [gargantuaUser,simpleUser]
_ <- runCmdDevWith iniPath createUsers
-}
let
cmd
::
Cmd
ServantErr
NodeId
cmd
=
flowCorpus
CsvHalFormat
corpusPath
(
cs
name
)
r
<-
runCmdDevWith
iniPath
cmd
...
...
package.yaml
View file @
46fafbe8
...
...
@@ -43,6 +43,7 @@ library:
-
Gargantext.Database.Tree
-
Gargantext.Database.Types.Node
-
Gargantext.Database.Utils
-
Gargantext.Database.Schema.User
-
Gargantext.Prelude
-
Gargantext.Text
-
Gargantext.Text.Context
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment