| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.Bolt.Lazy
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
- 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 #
Monad Transformer to do all BOLT actions in
run :: Pipe -> BoltActionT m a -> m a #
Runs BOLT action on selected pipe
queryP :: MonadIO m => Text -> Map Text Value -> BoltActionT m [Record] #
Runs Cypher query with parameters and returns list of obtained Records. Lazy version
query :: MonadIO m => Text -> BoltActionT m [Record] #
Runs Cypher query and returns list of obtained Records. Lazy version
queryP_ :: MonadIO m => Text -> Map Text Value -> BoltActionT m () #
Runs Cypher query with parameters and ignores response
query_ :: MonadIO m => Text -> BoltActionT m () #
Runs Cypher query and ignores response
Configuration of driver connection
Constructors
| BoltCfg | |
Fields
| |
The BoltValue class describes values, that can be packed and unpacked for BOLT protocol.
Methods
pack :: a -> ByteString #
Packs a value to ByteString
unpackT :: Monad m => UnpackT m a #
Unpacks in a State monad to get values from single ByteString
unpack :: Monad m => ByteString -> m a #
Unpacks a ByteString to selected value
Instances
| BoltValue Bool # | |
Defined in Database.Bolt.Value.Instances | |
| BoltValue Double # | |
Defined in Database.Bolt.Value.Instances | |
| BoltValue Int # | |
Defined in Database.Bolt.Value.Instances | |
| BoltValue () # | |
Defined in Database.Bolt.Value.Instances Methods pack :: () -> ByteString # unpackT :: Monad m => UnpackT m () # unpack :: Monad m => ByteString -> m () # | |
| BoltValue Text # | |
Defined in Database.Bolt.Value.Instances | |
| BoltValue Value # | |
Defined in Database.Bolt.Value.Instances | |
| BoltValue Structure # | |
Defined in Database.Bolt.Value.Instances | |
| BoltValue a => BoltValue [a] # | |
Defined in Database.Bolt.Value.Instances Methods pack :: [a] -> ByteString # unpackT :: Monad m => UnpackT m [a] # unpack :: Monad m => ByteString -> m [a] # | |
| BoltValue a => BoltValue (Map Text a) # | |
The Structure datatype describes Neo4j structure for BOLT protocol
class RecordValue a where #
Get exact type from Value
Minimal complete definition
Instances
| RecordValue Bool # | |
| RecordValue Double # | |
| RecordValue Int # | |
| RecordValue () # | |
Defined in Database.Bolt.Record | |
| RecordValue Text # | |
| RecordValue Path # | |
| RecordValue URelationship # | |
Defined in Database.Bolt.Record Methods exact :: Monad m => Value -> m URelationship # | |
| RecordValue Relationship # | |
Defined in Database.Bolt.Record Methods exact :: Monad m => Value -> m Relationship # | |
| RecordValue Node # | |
| RecordValue a => RecordValue [a] # | |
Defined in Database.Bolt.Record | |
| RecordValue a => RecordValue (Maybe a) # | |
| RecordValue (Map Text Value) # | |
data Relationship #
Constructors
| Relationship | |
Instances
| Eq Relationship # | |
Defined in Database.Bolt.Value.Type | |
| Show Relationship # | |
Defined in Database.Bolt.Value.Type Methods showsPrec :: Int -> Relationship -> ShowS # show :: Relationship -> String # showList :: [Relationship] -> ShowS # | |
| RecordValue Relationship # | |
Defined in Database.Bolt.Record Methods exact :: Monad m => Value -> m Relationship # | |
data URelationship #
Constructors
| URelationship | |
Instances
| Eq URelationship # | |
Defined in Database.Bolt.Value.Type Methods (==) :: URelationship -> URelationship -> Bool # (/=) :: URelationship -> URelationship -> Bool # | |
| Show URelationship # | |
Defined in Database.Bolt.Value.Type Methods showsPrec :: Int -> URelationship -> ShowS # show :: URelationship -> String # showList :: [URelationship] -> ShowS # | |
| RecordValue URelationship # | |
Defined in Database.Bolt.Record Methods exact :: Monad m => Value -> m URelationship # | |
Constructors
| Path | |
Fields
| |