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
158
Issues
158
List
Board
Labels
Milestones
Merge Requests
11
Merge Requests
11
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
2113c746
Commit
2113c746
authored
Dec 10, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] insertOn conflict do Nothing.
parent
9a81c0df
Pipeline
#57
failed with stage
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
install
install
+4
-0
NodeNgram.hs
src/Gargantext/Database/Schema/NodeNgram.hs
+7
-3
No files found.
install
View file @
2113c746
...
...
@@ -12,6 +12,10 @@ else
echo
" or : adduser
$(
whoami
)
docker"
fi
sudo echo
"#!/bin/sh
exec sudo -E /usr/bin/docker
\"\$
@
\"
"
>
/usr/local/bin/docker
sudo chmod
+x /usr/local/bin/docker
curl
-sSL
https://get.haskellstack.org/ | sh
stack update
stack upgrade
...
...
src/Gargantext/Database/Schema/NodeNgram.hs
View file @
2113c746
...
...
@@ -103,9 +103,13 @@ insertNodeNgrams = insertNodeNgramW
insertNodeNgramW
::
[
NodeNgramWrite
]
->
Cmd
Int
insertNodeNgramW
nns
=
mkCmd
$
\
c
->
fromIntegral
<$>
runInsertMany
c
nodeNgramTable
nns
-- <$> runInsertManyOnConflictDoNothing c nodeNgramTable nns
mkCmd
$
\
c
->
fromIntegral
<$>
runInsert_
c
insertNothing
where
insertNothing
=
(
Insert
{
iTable
=
nodeNgramTable
,
iRows
=
nns
,
iReturning
=
rCount
,
iOnConflict
=
Nothing
})
type
NgramsText
=
Text
...
...
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