Safe Haskell | None |
---|
- data Cypher a
- data Entity a = Entity {
- entity_id :: String
- entity_properties :: String
- entity_data :: a
- data CypherResult a = CypherResult {
- rescolumns :: [Text]
- resdata :: a
- type LuceneQuery = ByteString
- runCypher :: Cypher a -> DBInfo -> Manager -> IO a
- cypher :: FromJSON a => Text -> Value -> Cypher a
- cypherGetNode :: FromJSON b => Entity b -> Cypher (Entity b)
- cypherCreate :: (ToJSON a, FromJSON b) => a -> Cypher b
- cypherGet :: (ToJSON a1, FromJSON a) => a1 -> Cypher a
- cypherSet :: (ToJSON a, ToJSON a1) => Entity a -> a1 -> Cypher ()
- luceneEncode :: ToJSON a => a -> LuceneQuery
- withCypherManager :: (Manager -> ResourceT IO a) -> Cypher a
- data CypherException
- data DBInfo = DBInfo {}
- type Hostname = ByteString
- type Port = Int
- newtype CypherVal a = CypherVal a
- newtype CypherVals a = CypherVals [a]
- newtype CypherCol a = CypherCol a
- newtype CypherCols a = CypherCols a
- data CypherMaybe a
- = CypherJust a
- | CypherNothing
- data CypherUnit = CypherUnit
Documentation
All interaction with Neo4j is done through the Cypher monad. Use cypher
to add a query to the monad.
A neo4j node or edge
Entity | |
|
data CypherResult a Source
Raw result data returned by Neo4j. Only use this if you care about column headers.
CypherResult | |
|
Eq a => Eq (CypherResult a) | |
Show a => Show (CypherResult a) | |
ToJSON a0 => ToJSON (CypherResult a0) | |
FromJSON a0 => FromJSON (CypherResult a0) |
type LuceneQuery = ByteStringSource
cypherCreate :: (ToJSON a, FromJSON b) => a -> Cypher bSource
Create a cypher node
cypherGet :: (ToJSON a1, FromJSON a) => a1 -> Cypher aSource
Get the nodes matching the given lucene query
cypherSet :: (ToJSON a, ToJSON a1) => Entity a -> a1 -> Cypher ()Source
Set cypher properties. This currently cannot be done through cypher queries.
luceneEncode :: ToJSON a => a -> LuceneQuerySource
Convert an object to a Lucene query encoded as an ByteString
.
withCypherManager :: (Manager -> ResourceT IO a) -> Cypher aSource
Get the http connection manager for a Cypher monad
data CypherException Source
An error in handling a Cypher query, either in communicating with the server or parsing the result
Information about your neo4j configuration needed to make requests over the REST api.
type Hostname = ByteStringSource
A single result returned by Neo4j.
newtype CypherVals a Source
Values returned by Neo4j.
CypherVals [a] |
Eq a => Eq (CypherVals a) | |
Show a => Show (CypherVals a) | |
FromJSON a => FromJSON (CypherVals a) |
A single column returned by Neo4j.
newtype CypherCols a Source
Columns returned by Neo4j.
Eq a => Eq (CypherCols a) | |
Show a => Show (CypherCols a) | |
FromJSON a => FromJSON (CypherCols a) |
data CypherMaybe a Source
Possibly a value returned by Neo4j
Eq a => Eq (CypherMaybe a) | |
Show a => Show (CypherMaybe a) | |
FromJSON a => FromJSON (CypherMaybe a) |