| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.Bolt.Extras.Query
- type GraphGetRequest = Graph NodeName NodeGetter RelGetter
- type GraphGetResponse = Graph NodeName Node URelationship
- type GraphPutRequest = Graph NodeName PutNode URelationship
- type GraphPutResponse = Graph NodeName BoltId BoltId
- data NodeGetter = NodeGetter {}
- type NodeName = Text
- data PutNode
- data RelGetter = RelGetter {}
- class ToCypher a where
- getGraph :: MonadIO m => [Text] -> GraphGetRequest -> BoltActionT m [GraphGetResponse]
- putGraph :: MonadIO m => GraphPutRequest -> BoltActionT m GraphPutResponse
Documentation
type GraphGetRequest = Graph NodeName NodeGetter RelGetter Source #
The combinations of Getters to load graph from the database.
type GraphGetResponse = Graph NodeName Node URelationship Source #
The graph of Nodes and URelationships which we got from the database using GraphGetRequest.
type GraphPutRequest = Graph NodeName PutNode URelationship Source #
The graph of Nodes with specified uploading type and URelationships.
type GraphPutResponse = Graph NodeName BoltId BoltId Source #
The graph of BoltIds corresponding to the nodes and relationships
which we get after putting GraphPutRequest.
Helper to find URelationships.
class ToCypher a where Source #
The class for convertation into Cypher.
Minimal complete definition
Instances
| 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.