Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type GraphGetRequest = Graph NodeName NodeGetter RelGetter
- type GraphGetResponse = Graph NodeName Node URelationship
- type GraphPutRequest = Graph NodeName PutNode PutRelationship
- type GraphPutResponse = Graph NodeName BoltId BoltId
- data NodeGetter = NodeGetter {}
- type NodeName = Text
- data PutNode
- data PutRelationship
- data RelGetter = RelGetter {}
- class ToCypher a where
- getGraph :: MonadIO m => [Text] -> GraphGetRequest -> BoltActionT m [GraphGetResponse]
- putGraph :: MonadIO m => GraphPutRequest -> BoltActionT m GraphPutResponse
- setNode :: MonadIO m => NodeGetter -> [Property] -> BoltActionT m BoltId
- deleteNodes :: MonadIO m => [BoltId] -> BoltActionT m [BoltId]
Documentation
type GraphGetRequest = Graph NodeName NodeGetter RelGetter Source #
The combinations of Getter
s to load graph from the database.
type GraphGetResponse = Graph NodeName Node URelationship Source #
The graph of Node
s and URelationship
s which we got from the database using GraphGetRequest
.
type GraphPutRequest = Graph NodeName PutNode PutRelationship Source #
The graph of Node
s with specified uploading type and URelationship
s.
type GraphPutResponse = Graph NodeName BoltId BoltId Source #
The graph of BoltId
s corresponding to the nodes and relationships
which we get after putting GraphPutRequest
.
data NodeGetter Source #
Helper to find Node
s.
data PutRelationship Source #
PutRelationship
is the wrapper for Relationship
where we can specify if we want to merge or create it.
Helper to find URelationship
s.
class ToCypher a where Source #
The class for convertation into Cypher.
ToCypher Value Source # | Convertation for |
ToCypher Property Source # | Converts property with |
ToCypher Label Source # | Label with |
ToCypher [Property] Source # | Several properties are formatted with concatenation. |
ToCypher [Label] Source # | Several labels are formatted with concatenation. |
getGraph :: MonadIO m => [Text] -> GraphGetRequest -> BoltActionT m [GraphGetResponse] Source #
For the given GraphGetRequest
find all graphs, which match it.
This function creates single cypher query and performs it.
putGraph :: MonadIO m => GraphPutRequest -> BoltActionT m GraphPutResponse Source #
Creates graph using given GraphPutRequest
.
If there were multiple choices while merging given _vertices, the first match is used for connection.
setNode :: MonadIO m => NodeGetter -> [Property] -> BoltActionT m BoltId Source #
setNode
updates properties for the node,
corresponding to the given NodeGetter
.
deleteNodes :: MonadIO m => [BoltId] -> BoltActionT m [BoltId] Source #
deleteNodes
is used to delete all nodes with given BoltId
s
and all corresponding relatioships.