packstream-0.1.0.0: PackStream converter for Neo4j BOLT protocol
Safe HaskellNone
LanguageHaskell2010

Data.PackStream.Structure

Synopsis

Documentation

class ToStructure a where Source #

The set of types, that can be presented as PackStream Structures

Methods

toStructure :: a -> Structure Source #

Convert object to Structure

data Node Source #

Snapshot of a node within a graph database

Constructors

Node 

Fields

Instances

Instances details
Eq Node Source # 
Instance details

Defined in Data.PackStream.Structure

Methods

(==) :: Node -> Node -> Bool #

(/=) :: Node -> Node -> Bool #

Show Node Source # 
Instance details

Defined in Data.PackStream.Structure

Methods

showsPrec :: Int -> Node -> ShowS #

show :: Node -> String #

showList :: [Node] -> ShowS #

FromStructure Node Source # 
Instance details

Defined in Data.PackStream.Structure

ToStructure Node Source # 
Instance details

Defined in Data.PackStream.Structure

data Relationship Source #

Snapshot of a relationship within a graph database

Constructors

Relationship 

Fields

data UnboundRelationship Source #

Relationship detail without start or end node information

Constructors

UnboundRelationship 

Fields

data Path Source #

Alternating sequence of nodes and relationships

Constructors

Path 

Fields

Instances

Instances details
Eq Path Source # 
Instance details

Defined in Data.PackStream.Structure

Methods

(==) :: Path -> Path -> Bool #

(/=) :: Path -> Path -> Bool #

Show Path Source # 
Instance details

Defined in Data.PackStream.Structure

Methods

showsPrec :: Int -> Path -> ShowS #

show :: Path -> String #

showList :: [Path] -> ShowS #

FromStructure Path Source # 
Instance details

Defined in Data.PackStream.Structure

ToStructure Path Source # 
Instance details

Defined in Data.PackStream.Structure

newtype Date Source #

The days are days since the Unix epoch

Constructors

Date 

Fields

  • days :: Int

    The days are days since the Unix epoch

Instances

Instances details
Eq Date Source # 
Instance details

Defined in Data.PackStream.Structure

Methods

(==) :: Date -> Date -> Bool #

(/=) :: Date -> Date -> Bool #

Show Date Source # 
Instance details

Defined in Data.PackStream.Structure

Methods

showsPrec :: Int -> Date -> ShowS #

show :: Date -> String #

showList :: [Date] -> ShowS #

FromStructure Date Source # 
Instance details

Defined in Data.PackStream.Structure

ToStructure Date Source # 
Instance details

Defined in Data.PackStream.Structure