Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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
- pack :: a -> ByteString
- unpackT :: Monad m => UnpackT m a
- unpack :: Monad m => ByteString -> m a
- 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
Instances
BoltValue Bool Source # | |
BoltValue Double Source # | |
BoltValue Int Source # | |
BoltValue () Source # | |
Defined in Database.Bolt.Value.Instances | |
BoltValue Text Source # | |
BoltValue Value Source # | |
BoltValue Structure Source # | |
BoltValue a => BoltValue [a] Source # | |
Defined in Database.Bolt.Value.Instances | |
BoltValue a => BoltValue (Map Text a) Source # | |
The Structure
datatype describes Neo4j structure for BOLT protocol
class RecordValue a where Source #
Get exact type from Value
Instances
RecordValue Bool Source # | |
RecordValue Double Source # | |
RecordValue Int Source # | |
RecordValue () Source # | |
RecordValue Text Source # | |
RecordValue Path Source # | |
RecordValue URelationship Source # | |
Defined in Database.Bolt.Record | |
RecordValue Relationship Source # | |
Defined in Database.Bolt.Record | |
RecordValue Node Source # | |
RecordValue a => RecordValue [a] Source # | |
RecordValue a => RecordValue (Maybe a) Source # | |
RecordValue (Map Text Value) Source # | |
data Relationship Source #
Instances
Eq Relationship Source # | |
Defined in Database.Bolt.Value.Type (==) :: Relationship -> Relationship -> Bool # (/=) :: Relationship -> Relationship -> Bool # | |
Show Relationship Source # | |
Defined in Database.Bolt.Value.Type showsPrec :: Int -> Relationship -> ShowS # show :: Relationship -> String # showList :: [Relationship] -> ShowS # | |
RecordValue Relationship Source # | |
Defined in Database.Bolt.Record |
data URelationship Source #
Instances
Eq URelationship Source # | |
Defined in Database.Bolt.Value.Type (==) :: URelationship -> URelationship -> Bool # (/=) :: URelationship -> URelationship -> Bool # | |
Show URelationship Source # | |
Defined in Database.Bolt.Value.Type showsPrec :: Int -> URelationship -> ShowS # show :: URelationship -> String # showList :: [URelationship] -> ShowS # | |
RecordValue URelationship Source # | |
Defined in Database.Bolt.Record |
Path | |
|