Documentation ¶
Index ¶
- type Cypher
- type Gonorm
- type Neo4jError
- type Node
- type Relationship
- type Results
- func (r *Results) AsInt() (int, error)
- func (r *Results) AsInts() ([]int, error)
- func (r *Results) AsNode() (*Node, error)
- func (r *Results) AsNodes() ([]*Node, error)
- func (r *Results) AsRelationship() (*Relationship, error)
- func (r *Results) AsRelationships() ([]*Relationship, error)
- func (r *Results) AsString() (string, error)
- func (r *Results) AsStrings() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cypher ¶
type Cypher struct { Query string `json:"query"` Params map[string]interface{} `json:"params"` // contains filtered or unexported fields }
The Cypher type represents the relevant parameters of a cypher query
type Gonorm ¶
The Gonorm type represents the relevant parameters of a Neo4j connection
type Neo4jError ¶
type Neo4jError struct { Message string `json:"message"` Exception string `json:"exception"` Fullname string `json:"fullname"` Stacktrace []string `json:"stacktrace"` }
Neo4jError defines an error type that is populated when an erroneous query is executed
func (*Neo4jError) Error ¶
func (neo4jError *Neo4jError) Error() string
The Error method is attached to the Neo4jError type so that it satisfies the Error interface
type Node ¶
type Node struct {
Params map[string]interface{}
}
The Node type represent the relevant parameters of a Neo4j node
type Relationship ¶
The Relationship type represent the relevant parameters of a Neo4j relationship
type Results ¶
type Results struct { Columns []interface{} `json:"columns"` Data []interface{} `json:"data"` Error error }
The Results type represents the relevant parameters of a response from the Neo4j API
func (*Results) AsInts ¶
AsInts should be used when you return several integers in your cypher query
func (*Results) AsRelationship ¶
func (r *Results) AsRelationship() (*Relationship, error)
AsRelationship should be used when you return one relationship in your cypher query
func (*Results) AsRelationships ¶
func (r *Results) AsRelationships() ([]*Relationship, error)
AsRelationships should be used when you return several relationships in your cypher query