haskell-neo4j-client-0.1.5.0: A Haskell neo4j client

Safe HaskellNone

Database.Neo4j.Batch.Types

Synopsis

Documentation

newtype BatchFuture a Source

Constructors

BatchFuture Int 

type CmdParser = Value -> Graph -> GraphSource

data BatchCmd Source

Constructors

BatchCmd 

Fields

cmdMethod :: Method
 
cmdPath :: Text
 
cmdBody :: Value
 
cmdParse :: CmdParser
 
cmdId :: Int
 

Instances

ToJSON BatchCmd 

data BatchState Source

Constructors

BatchState 

Fields

commands :: [BatchCmd]
 
batchId :: Int
 

Instances

ToJSON (Batch a) 

type Batch a = State BatchState aSource

tryParseBody :: FromJSON a => Value -> aSource

Helper function to parse a batch element response from a body entry

tryParseFrom :: FromJSON a => Value -> aSource

Helper function to parse a batch element response from a from entry

exceptionByName :: Neo4jException -> Text -> Text -> Neo4jExceptionSource

Get teh exception type for a given batch exception message, if nothing is found a default exception is given

parseException :: ByteString -> Neo4jExceptionSource

Parse batch exceptions