cypher-0.1: Haskell bindings for the neo4j "cypher" query language

Safe HaskellNone

Database.Cypher

Synopsis

Documentation

data Cypher a Source

All interaction with Neo4j is done through the Cypher monad. Use cypher to add a query to the monad.

Instances

data Entity a Source

A neo4j node or edge

Instances

Eq a => Eq (Entity a) 
Show a => Show (Entity a) 
ToJSON (Entity a) 
FromJSON a => FromJSON (Entity a) 

data CypherResult a Source

Raw result data returned by Neo4j. Only use this if you care about column headers.

Constructors

CypherResult 

Fields

rescolumns :: [Text]
 
resdata :: a
 

Instances

Eq a => Eq (CypherResult a) 
Show a => Show (CypherResult a) 
ToJSON a0 => ToJSON (CypherResult a0) 
FromJSON a0 => FromJSON (CypherResult a0) 
FromJSON a => FromCypher (CypherResult a) 

runCypher :: Cypher a -> Hostname -> Port -> IO aSource

Execute some number of cypher queries

cypher :: FromCypher a => Text -> Value -> Cypher aSource

Perform a cypher query

data CypherException Source

An error in handling a Cypher query, either in communicating with the server or parsing the result

data OneTuple a

OneTuple is the singleton tuple data type.

Constructors

OneTuple a

singleton tuple constructor