Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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.
Instances
Show NodeGetter Source # | |
Defined in Database.Bolt.Extras.Query.Get showsPrec :: Int -> NodeGetter -> ShowS # show :: NodeGetter -> String # showList :: [NodeGetter] -> ShowS # |
data PutRelationship Source #
PutRelationship
is the wrapper for Relationship
where we can specify if we want to merge or create it.
Instances
Show PutRelationship Source # | |
Defined in Database.Bolt.Extras.Query.Put showsPrec :: Int -> PutRelationship -> ShowS # show :: PutRelationship -> String # showList :: [PutRelationship] -> ShowS # |
Helper to find URelationship
s.
class ToCypher a where Source #
The class for convertation into Cypher.
Instances
ToCypher Value Source # | Convertation for |
ToCypher Property Source # | Converts property with |
ToCypher Label Source # | Label with |
ToCypher Conds Source # | |
ToCypher Cond Source # | |
ToCypher Selectors Source # | |
ToCypher Selector Source # | |
ToCypher PathSelector Source # | |
Defined in Database.Bolt.Extras.DSL.Internal.Instances toCypher :: PathSelector -> Text Source # | |
ToCypher RelSelector Source # | |
Defined in Database.Bolt.Extras.DSL.Internal.Instances toCypher :: RelSelector -> Text Source # | |
ToCypher NodeSelector Source # | |
Defined in Database.Bolt.Extras.DSL.Internal.Instances toCypher :: NodeSelector -> Text Source # | |
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.