Documentation
¶
Index ¶
- Variables
- func GetProperty[T PropertyValue](e Entity, key string) (T, error)
- func GetRecordValue[T RecordValue](record *Record, key string) (T, error)
- type EagerResult
- type Entity
- type Neo4jOption
- type Node
- type Path
- type Point2D
- type Point3D
- type PropertyValue
- type Record
- type RecordValue
- type Relationship
Constants ¶
This section is empty.
Variables ¶
View Source
var Neo4jQueryCallStack = testutils.NewCallStack()
Functions ¶
func GetProperty ¶
func GetProperty[T PropertyValue](e Entity, key string) (T, error)
func GetRecordValue ¶
func GetRecordValue[T RecordValue](record *Record, key string) (T, error)
Types ¶
type EagerResult ¶
func ExecuteQuery ¶
func ExecuteQuery(hostName, query string, parameters map[string]any, opts ...Neo4jOption) (*EagerResult, error)
*
* * Executes a query or mutation on the Neo4j database. * * @param hostName - the name of the host * @param query - the query to execute * @param parameters - the parameters to pass to the query
type Neo4jOption ¶
type Neo4jOption func(*neo4jOptions)
func WithDbName ¶
func WithDbName(dbName string) Neo4jOption
type Node ¶
type Node struct { ElementId string `json:"ElementId"` Labels []string `json:"Labels"` Props map[string]any `json:"Props"` }
func (*Node) GetElementId ¶
func (*Node) GetProperties ¶
type Path ¶
type Path struct { Nodes []Node `json:"Nodes"` Relationships []Relationship `json:"Relationships"` }
type Point2D ¶
type Point2D struct { X float64 Y float64 SpatialRefId uint32 // Id of coordinate reference system. }
Point2D represents a two dimensional point in a particular coordinate reference system.
type Point3D ¶
type Point3D struct { X float64 Y float64 Z float64 SpatialRefId uint32 // Id of coordinate reference system. }
Point3D represents a three dimensional point in a particular coordinate reference system.
type PropertyValue ¶
type RecordValue ¶
type Relationship ¶
type Relationship struct { ElementId string `json:"ElementId"` StartElementId string `json:"StartElementId"` EndElementId string `json:"EndElementId"` Type string `json:"Type"` Props map[string]any `json:"Props"` }
func (*Relationship) GetElementId ¶
func (r *Relationship) GetElementId() string
func (*Relationship) GetProperties ¶
func (r *Relationship) GetProperties() map[string]any
Click to show internal directories.
Click to hide internal directories.