Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Przemyslaw Kaminski
haskell-gargantext
Commits
0ef04e50
Commit
0ef04e50
authored
Dec 18, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Database] Clean code.
parent
f4838983
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
105 deletions
+31
-105
Bashql.hs
src/Gargantext/Database/Bashql.hs
+1
-1
Contact.hs
src/Gargantext/Database/Node/Contact.hs
+2
-2
Node.hs
src/Gargantext/Database/Schema/Node.hs
+28
-102
No files found.
src/Gargantext/Database/Bashql.hs
View file @
0ef04e50
...
...
@@ -117,7 +117,7 @@ tree p = do
pure
$
ns
<>
concat
children
-- | TODO
post
::
PWD
->
[
NodeWrite
'
]
->
Cmd
err
Int64
post
::
PWD
->
[
NodeWrite
]
->
Cmd
err
Int64
post
[]
_
=
pure
0
post
_
[]
=
pure
0
post
pth
ns
=
insertNodesWithParent
(
Just
$
last
pth
)
ns
...
...
src/Gargantext/Database/Node/Contact.hs
View file @
0ef04e50
...
...
@@ -29,7 +29,7 @@ import Database.PostgreSQL.Simple.FromField (FromField, fromField)
import
GHC.Generics
(
Generic
)
import
Gargantext.Core.Utils.Prefix
(
unPrefix
)
import
Gargantext.Core.Types.Main
(
AnnuaireId
,
UserId
)
import
Gargantext.Database.Schema.Node
(
NodeWrite
'
,
Name
,
node
)
import
Gargantext.Database.Schema.Node
(
NodeWrite
,
Name
,
node
)
import
Gargantext.Database.Types.Node
(
Node
,
Hyperdata
,
NodeType
(
..
))
import
Gargantext.Database.Utils
(
fromField'
)
import
Gargantext.Prelude
...
...
@@ -97,7 +97,7 @@ data ContactTouch =
nodeContactW
::
Maybe
Name
->
Maybe
HyperdataContact
->
AnnuaireId
->
UserId
->
NodeWrite
'
->
AnnuaireId
->
UserId
->
NodeWrite
nodeContactW
maybeName
maybeContact
aId
=
node
NodeContact
name
contact
(
Just
aId
)
where
...
...
src/Gargantext/Database/Schema/Node.hs
View file @
0ef04e50
This diff is collapsed.
Click to expand it.
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