Safe Haskell | None |
---|
- newtype BatchFuture a = BatchFuture Int
- type CmdParser = Value -> Graph -> Graph
- data BatchCmd = BatchCmd {}
- defCmd :: BatchCmd
- data BatchState = BatchState {}
- type Batch a = State BatchState a
- getCmds :: Batch a -> [BatchCmd]
- tryParseBody :: FromJSON a => Value -> a
- tryParseFrom :: FromJSON a => Value -> a
- nextState :: BatchCmd -> Batch (BatchFuture a)
- parseBatchResponse :: Array -> Batch a -> Graph
- exceptionByName :: Neo4jException -> Text -> Text -> Neo4jException
- parseException :: ByteString -> Neo4jException
- runBatch :: Batch a -> Neo4j Graph
Documentation
newtype BatchFuture a Source
BatchFuture Int |
ToJSON BatchCmd |
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
nextState :: BatchCmd -> Batch (BatchFuture a)Source
parseBatchResponse :: Array -> Batch a -> GraphSource
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