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
60604211
Commit
60604211
authored
Dec 08, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Database][Schema] Node
parent
8592dfe7
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
21 additions
and
21 deletions
+21
-21
Node.hs
src/Gargantext/API/Node.hs
+1
-1
Bashql.hs
src/Gargantext/Database/Bashql.hs
+1
-1
Facet.hs
src/Gargantext/Database/Facet.hs
+1
-1
Flow.hs
src/Gargantext/Database/Flow.hs
+1
-1
Pairing.hs
src/Gargantext/Database/Flow/Pairing.hs
+1
-1
Utils.hs
src/Gargantext/Database/Flow/Utils.hs
+1
-1
Children.hs
src/Gargantext/Database/Node/Children.hs
+1
-1
Contact.hs
src/Gargantext/Database/Node/Contact.hs
+1
-1
Add.hs
src/Gargantext/Database/Node/Document/Add.hs
+1
-1
Insert.hs
src/Gargantext/Database/Node/Document/Insert.hs
+1
-1
Root.hs
src/Gargantext/Database/Root.hs
+2
-2
Ngrams.hs
src/Gargantext/Database/Schema/Ngrams.hs
+1
-1
Node.hs
src/Gargantext/Database/Schema/Node.hs
+2
-2
NodeNgram.hs
src/Gargantext/Database/Schema/NodeNgram.hs
+1
-1
NodeNgramsNgrams.hs
src/Gargantext/Database/Schema/NodeNgramsNgrams.hs
+1
-1
NodeNode.hs
src/Gargantext/Database/Schema/NodeNode.hs
+1
-1
User.hs
src/Gargantext/Database/Schema/User.hs
+1
-1
TextSearch.hs
src/Gargantext/Database/TextSearch.hs
+1
-1
Flow.hs
src/Gargantext/Text/Flow.hs
+1
-1
No files found.
src/Gargantext/API/Node.hs
View file @
60604211
...
...
@@ -51,7 +51,7 @@ import Servant
import
Gargantext.API.Ngrams
(
TabType
(
..
),
TableNgramsApi
,
TableNgramsApiGet
,
tableNgramsPatch
,
getTableNgrams
,
NgramsIdPatchsFeed
,
NgramsIdPatchsBack
,
NgramsTable
)
import
Gargantext.Prelude
import
Gargantext.Database.Types.Node
import
Gargantext.Database.Node
(
runCmd
import
Gargantext.Database.
Schema.
Node
(
runCmd
,
getNodesWithParentId
,
getNode
,
deleteNode
,
deleteNodes
,
mk
,
JSONB
)
...
...
src/Gargantext/Database/Bashql.hs
View file @
60604211
...
...
@@ -81,7 +81,7 @@ import Data.List (concat, last)
import
Gargantext.Core.Types
import
Gargantext.Database.Utils
(
connectGargandb
)
import
Gargantext.Database.Node
import
Gargantext.Database.
Schema.
Node
import
qualified
Gargantext.Database.Node.Update
as
U
(
Update
(
..
),
update
)
import
Gargantext.Prelude
...
...
src/Gargantext/Database/Facet.hs
View file @
60604211
...
...
@@ -45,7 +45,7 @@ import Gargantext.Core.Types
import
Gargantext.Core.Utils.Prefix
(
unPrefix
)
import
Gargantext.Database.Config
(
nodeTypeId
)
import
Gargantext.Database.Schema.Ngrams
import
Gargantext.Database.Node
import
Gargantext.Database.
Schema.
Node
import
Gargantext.Database.Schema.NodeNgram
import
Gargantext.Database.Schema.NodeNode
import
Gargantext.Database.Queries
...
...
src/Gargantext/Database/Flow.hs
View file @
60604211
...
...
@@ -28,7 +28,7 @@ import Gargantext.Core.Types (NodePoly(..), ListType(..), listTypeId)
import
Gargantext.Database.Bashql
(
runCmd'
)
-- , del)
import
Gargantext.Database.Config
(
userMaster
,
userArbitrary
,
corpusMasterName
)
import
Gargantext.Database.Schema.Ngrams
(
insertNgrams
,
Ngrams
(
..
),
NgramsT
(
..
),
NgramsIndexed
(
..
),
indexNgramsT
,
NgramsType
(
..
),
text2ngrams
)
import
Gargantext.Database.Node
(
mkRoot
,
mkCorpus
,
Cmd
(
..
),
mkList
,
mkGraph
,
mkDashboard
,
mkAnnuaire
,
getCorporaWithParentId'
)
import
Gargantext.Database.
Schema.
Node
(
mkRoot
,
mkCorpus
,
Cmd
(
..
),
mkList
,
mkGraph
,
mkDashboard
,
mkAnnuaire
,
getCorporaWithParentId'
)
import
Gargantext.Database.Root
(
getRootCmd
)
import
Gargantext.Database.Types.Node
(
NodeType
(
..
),
NodeId
)
import
Gargantext.Database.Node.Document.Add
(
add
)
...
...
src/Gargantext/Database/Flow/Pairing.hs
View file @
60604211
...
...
@@ -36,7 +36,7 @@ import Gargantext.Database.Schema.Ngrams -- (NgramsType(..))
--import Gargantext.Database.Types.Node -- (Hyperdata(..))
import
Gargantext.Database.Node.Contact
import
Gargantext.Database.Flow.Utils
import
Gargantext.Database.Node
(
Cmd
,
mkCmd
)
import
Gargantext.Database.
Schema.
Node
(
Cmd
,
mkCmd
)
import
Gargantext.Database.Node.Children
import
Gargantext.Core.Types.Main
import
Gargantext.Core.Types
(
NodeType
(
..
))
...
...
src/Gargantext/Database/Flow/Utils.hs
View file @
60604211
...
...
@@ -20,7 +20,7 @@ import qualified Data.Map as DM
import
Gargantext.Prelude
import
Gargantext.Database.Schema.Ngrams
import
Gargantext.Database.Types.Node
(
NodeId
,
Node
,
NodePoly
(
..
),
Hyperdata
)
import
Gargantext.Database.Node
-- (Cmd)
import
Gargantext.Database.
Schema.
Node
-- (Cmd)
import
Gargantext.Database.Schema.NodeNgram
toMaps
::
Hyperdata
a
=>
(
a
->
Map
(
NgramsT
Ngrams
)
Int
)
->
[
Node
a
]
->
Map
(
NgramsT
Ngrams
)
(
Map
NodeId
Int
)
...
...
src/Gargantext/Database/Node/Children.hs
View file @
60604211
...
...
@@ -20,7 +20,7 @@ module Gargantext.Database.Node.Children where
import
Database.PostgreSQL.Simple
(
Connection
)
import
Opaleye
import
Gargantext.Core.Types
import
Gargantext.Database.Node
import
Gargantext.Database.
Schema.
Node
import
Gargantext.Database.Schema.NodeNode
import
Gargantext.Database.Config
(
nodeTypeId
)
import
Gargantext.Database.Queries
...
...
src/Gargantext/Database/Node/Contact.hs
View file @
60604211
...
...
@@ -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.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
...
...
src/Gargantext/Database/Node/Document/Add.hs
View file @
60604211
...
...
@@ -32,7 +32,7 @@ import Database.PostgreSQL.Simple.Types (Values(..), QualifiedIdentifier(..))
import
Data.Text
(
Text
)
import
Gargantext.Database.Node
(
mkCmd
,
Cmd
(
..
))
import
Gargantext.Database.
Schema.
Node
(
mkCmd
,
Cmd
(
..
))
import
Gargantext.Database.Types.Node
import
Gargantext.Prelude
...
...
src/Gargantext/Database/Node/Document/Insert.hs
View file @
60604211
...
...
@@ -74,7 +74,7 @@ import Database.PostgreSQL.Simple.ToRow (ToRow(..))
import
Database.PostgreSQL.Simple.Types
(
Values
(
..
),
QualifiedIdentifier
(
..
))
import
GHC.Generics
(
Generic
)
import
Gargantext.Database.Config
(
nodeTypeId
)
import
Gargantext.Database.Node
(
mkCmd
,
Cmd
(
..
))
import
Gargantext.Database.
Schema.
Node
(
mkCmd
,
Cmd
(
..
))
import
Gargantext.Database.Node.Contact
-- (HyperdataContact(..), ContactWho(..))
import
Gargantext.Database.Types.Node
import
Gargantext.Prelude
...
...
src/Gargantext/Database/Root.hs
View file @
60604211
...
...
@@ -32,11 +32,11 @@ import Control.Arrow (returnA)
import
Gargantext.Prelude
import
Gargantext.Database.Types.Node
(
Node
,
NodePoly
(
..
),
NodeType
(
NodeUser
),
HyperdataUser
)
import
Gargantext.Database.Queries
(
NodeRead
)
import
Gargantext.Database.Node
(
queryNodeTable
)
import
Gargantext.Database.
Schema.
Node
(
queryNodeTable
)
import
Gargantext.Database.Schema.User
(
queryUserTable
,
UserPoly
(
..
))
import
Gargantext.Database.Config
(
nodeTypeId
)
import
Gargantext.Core.Types.Individu
(
Username
)
import
Gargantext.Database.Node
(
Cmd
(
..
),
mkCmd
)
import
Gargantext.Database.
Schema.
Node
(
Cmd
(
..
),
mkCmd
)
getRootCmd
::
Username
->
Cmd
[
Node
HyperdataUser
]
getRootCmd
u
=
mkCmd
$
\
c
->
getRoot
u
c
...
...
src/Gargantext/Database/Schema/Ngrams.hs
View file @
60604211
...
...
@@ -41,7 +41,7 @@ import Debug.Trace (trace)
import
GHC.Generics
(
Generic
)
import
Gargantext.Core.Types
-- (fromListTypeId, ListType, NodePoly(Node))
import
Gargantext.Database.Config
(
nodeTypeId
,
userMaster
)
import
Gargantext.Database.Node
(
mkCmd
,
Cmd
(
..
),
getListsWithParentId
,
getCorporaWithParentId
)
import
Gargantext.Database.
Schema.
Node
(
mkCmd
,
Cmd
(
..
),
getListsWithParentId
,
getCorporaWithParentId
)
import
Gargantext.Database.Root
(
getRoot
)
import
Gargantext.Core.Types
(
CorpusId
)
import
Gargantext.Database.Types.Node
(
NodeType
)
...
...
src/Gargantext/Database/Schema/Node.hs
View file @
60604211
{-|
Module : Gargantext.Database.Node
Module : Gargantext.Database.
Schema.
Node
Description : Main requests of Node to the database
Copyright : (c) CNRS, 2017-Present
License : AGPL + CECILL v3
...
...
@@ -23,7 +23,7 @@ Portability : POSIX
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TemplateHaskell #-}
module
Gargantext.Database.Node
where
module
Gargantext.Database.
Schema.
Node
where
import
Control.Applicative
(
Applicative
)
import
Control.Arrow
(
returnA
)
...
...
src/Gargantext/Database/Schema/NodeNgram.hs
View file @
60604211
...
...
@@ -35,7 +35,7 @@ import Data.Profunctor.Product.TH (makeAdaptorAndInstance)
import
Database.PostgreSQL.Simple.Types
(
Values
(
..
),
QualifiedIdentifier
(
..
))
import
Database.PostgreSQL.Simple.SqlQQ
(
sql
)
import
Gargantext.Core.Types.Main
(
ListId
,
ListTypeId
)
import
Gargantext.Database.Node
(
mkCmd
,
Cmd
(
..
))
import
Gargantext.Database.
Schema.
Node
(
mkCmd
,
Cmd
(
..
))
import
Gargantext.Prelude
import
Opaleye
import
qualified
Database.PostgreSQL.Simple
as
PGS
(
Connection
,
query
,
Only
(
..
))
...
...
src/Gargantext/Database/Schema/NodeNgramsNgrams.hs
View file @
60604211
...
...
@@ -37,7 +37,7 @@ import Data.Maybe (Maybe)
import
Data.Profunctor.Product.TH
(
makeAdaptorAndInstance
)
import
Database.PostgreSQL.Simple.SqlQQ
(
sql
)
import
Database.PostgreSQL.Simple.Types
(
Values
(
..
),
QualifiedIdentifier
(
..
))
import
Gargantext.Database.Node
(
mkCmd
,
Cmd
(
..
))
import
Gargantext.Database.
Schema.
Node
(
mkCmd
,
Cmd
(
..
))
import
Gargantext.Prelude
import
Opaleye
import
qualified
Database.PostgreSQL.Simple
as
DPS
...
...
src/Gargantext/Database/Schema/NodeNode.hs
View file @
60604211
...
...
@@ -30,7 +30,7 @@ import Database.PostgreSQL.Simple.SqlQQ (sql)
import
Control.Lens.TH
(
makeLensesWith
,
abbreviatedFields
)
import
Data.Maybe
(
Maybe
)
import
Data.Profunctor.Product.TH
(
makeAdaptorAndInstance
)
import
Gargantext.Database.Node
(
Cmd
(
..
),
mkCmd
)
import
Gargantext.Database.
Schema.
Node
(
Cmd
(
..
),
mkCmd
)
import
Gargantext.Core.Types.Main
(
CorpusId
,
DocId
)
import
Gargantext.Prelude
import
Opaleye
...
...
src/Gargantext/Database/Schema/User.hs
View file @
60604211
...
...
@@ -31,7 +31,7 @@ import Data.Profunctor.Product.TH (makeAdaptorAndInstance)
import
Data.Text
(
Text
)
import
Data.Time
(
UTCTime
)
import
GHC.Show
(
Show
(
..
))
import
Gargantext.Database.Node
(
Cmd
(
..
),
mkCmd
,
runCmd
)
import
Gargantext.Database.
Schema.
Node
(
Cmd
(
..
),
mkCmd
,
runCmd
)
import
Gargantext.Core.Types.Individu
(
Username
)
import
Gargantext.Prelude
import
Opaleye
...
...
src/Gargantext/Database/TextSearch.hs
View file @
60604211
...
...
@@ -27,7 +27,7 @@ import Gargantext.Database.Config (nodeTypeId)
import
Gargantext.Database.Types.Node
(
NodeType
(
..
))
import
Gargantext.Prelude
import
Gargantext.Database.Facet
import
Gargantext.Database.Node
import
Gargantext.Database.
Schema.
Node
import
Gargantext.Database.Schema.Ngrams
import
Gargantext.Database.Schema.NodeNode
import
Gargantext.Database.Schema.NodeNgram
...
...
src/Gargantext/Text/Flow.hs
View file @
60604211
...
...
@@ -29,7 +29,7 @@ import qualified Data.Map.Strict as M
----------------------------------------------
import
Gargantext.Database
(
Connection
)
import
Gargantext.Database.Node
import
Gargantext.Database.
Schema.
Node
import
Gargantext.Database.Types.Node
import
Gargantext.Core
(
Lang
)
...
...
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