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