Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class ToStructure a where
- toStructure :: a -> Structure
- class FromStructure a where
- fromStructure :: Structure -> Either PackStreamError a
- data Node = Node {}
- data Relationship = Relationship {}
- data UnboundRelationship = UnboundRelationship {}
- data Path = Path {}
Documentation
class ToStructure a where Source #
The set of types, that can be presented as PackStream
Structure
s
toStructure :: a -> Structure Source #
Convert object to Structure
Instances
ToStructure Path Source # | |
Defined in Data.PackStream.Structure toStructure :: Path -> Structure Source # | |
ToStructure UnboundRelationship Source # | |
Defined in Data.PackStream.Structure | |
ToStructure Relationship Source # | |
Defined in Data.PackStream.Structure toStructure :: Relationship -> Structure Source # | |
ToStructure Node Source # | |
Defined in Data.PackStream.Structure toStructure :: Node -> Structure Source # |
class FromStructure a where Source #
The set of types, that can be parsed from PackStream
Structure
s
fromStructure :: Structure -> Either PackStreamError a Source #
Convert Structure
to the object of selected type
Instances
FromStructure Path Source # | |
Defined in Data.PackStream.Structure | |
FromStructure UnboundRelationship Source # | |
Defined in Data.PackStream.Structure | |
FromStructure Relationship Source # | |
Defined in Data.PackStream.Structure | |
FromStructure Node Source # | |
Defined in Data.PackStream.Structure |
Snapshot of a node within a graph database
Instances
Eq Node Source # | |
Show Node Source # | |
FromStructure Node Source # | |
Defined in Data.PackStream.Structure | |
ToStructure Node Source # | |
Defined in Data.PackStream.Structure toStructure :: Node -> Structure Source # |
data Relationship Source #
Snapshot of a relationship within a graph database
Instances
Eq Relationship Source # | |
Defined in Data.PackStream.Structure (==) :: Relationship -> Relationship -> Bool # (/=) :: Relationship -> Relationship -> Bool # | |
Show Relationship Source # | |
Defined in Data.PackStream.Structure showsPrec :: Int -> Relationship -> ShowS # show :: Relationship -> String # showList :: [Relationship] -> ShowS # | |
FromStructure Relationship Source # | |
Defined in Data.PackStream.Structure | |
ToStructure Relationship Source # | |
Defined in Data.PackStream.Structure toStructure :: Relationship -> Structure Source # |
data UnboundRelationship Source #
Relationship detail without start or end node information
Instances
Eq UnboundRelationship Source # | |
Defined in Data.PackStream.Structure (==) :: UnboundRelationship -> UnboundRelationship -> Bool # (/=) :: UnboundRelationship -> UnboundRelationship -> Bool # | |
Show UnboundRelationship Source # | |
Defined in Data.PackStream.Structure showsPrec :: Int -> UnboundRelationship -> ShowS # show :: UnboundRelationship -> String # showList :: [UnboundRelationship] -> ShowS # | |
FromStructure UnboundRelationship Source # | |
Defined in Data.PackStream.Structure | |
ToStructure UnboundRelationship Source # | |
Defined in Data.PackStream.Structure |
Alternating sequence of nodes and relationships
Path | |
|
Instances
Eq Path Source # | |
Show Path Source # | |
FromStructure Path Source # | |
Defined in Data.PackStream.Structure | |
ToStructure Path Source # | |
Defined in Data.PackStream.Structure toStructure :: Path -> Structure Source # |