Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type BoltActionT = ReaderT Pipe
- connect :: MonadIO m => BoltCfg -> m Pipe
- close :: MonadIO m => Pipe -> m ()
- reset :: MonadIO m => Pipe -> m ()
- run :: Pipe -> BoltActionT m a -> m a
- queryP :: MonadIO m => Text -> Map Text Value -> BoltActionT m [Record]
- query :: MonadIO m => Text -> BoltActionT m [Record]
- queryP_ :: MonadIO m => Text -> Map Text Value -> BoltActionT m ()
- query_ :: MonadIO m => Text -> BoltActionT m ()
- data Pipe
- data BoltCfg = BoltCfg {}
- class BoltValue a where
- data Value
- data Structure = Structure {}
- type Record = Map Text Value
- class RecordValue a where
- at :: Monad m => Record -> Text -> m Value
- data Node = Node {}
- data Relationship = Relationship {}
- data URelationship = URelationship {}
- data Path = Path {
- pathNodes :: [Node]
- pathRelationships :: [URelationship]
- pathSequence :: [Int]
Documentation
type BoltActionT = ReaderT Pipe Source #
Monad Transformer to do all BOLT actions in
connect :: MonadIO m => BoltCfg -> m Pipe Source #
Creates new Pipe
instance to use all requests through
run :: Pipe -> BoltActionT m a -> m a Source #
Runs BOLT action on selected pipe
queryP :: MonadIO m => Text -> Map Text Value -> BoltActionT m [Record] Source #
Runs Cypher query with parameters and returns list of obtained Record
s. Lazy version
query :: MonadIO m => Text -> BoltActionT m [Record] Source #
Runs Cypher query and returns list of obtained Record
s. Lazy version
queryP_ :: MonadIO m => Text -> Map Text Value -> BoltActionT m () Source #
Runs Cypher query with parameters and ignores response
Configuration of driver connection
BoltCfg | |
|
class BoltValue a where Source #
The BoltValue
class describes values, that can be packed and unpacked for BOLT protocol.
pack :: a -> ByteString Source #
Packs a value to ByteString
unpackT :: Monad m => UnpackT m a Source #
Unpacks in a State monad to get values from single ByteString
unpack :: Monad m => ByteString -> m a Source #
Unpacks a ByteString
to selected value
The Structure
datatype describes Neo4j structure for BOLT protocol
class RecordValue a where Source #
Get exact type from Value
Path | |
|