neo4j

package
v0.0.0-...-e7e71ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GenericHierarchyCPIHTestData = "../testDataSetup/neo4j/genericHierarchyCPIH.cypher"
View Source
const HierarchyTestData = "../../testDataSetup/neo4j/hierarchy.cypher"
View Source
const ObservationTestData = "../../testDataSetup/neo4j/instance.cypher"

Variables

This section is empty.

Functions

This section is empty.

Types

type CypherTemplate

type CypherTemplate struct {
	Instance string
}

CypherTemplate allows cypher queries to be updated with new ID

type Datastore

type Datastore struct {
	// contains filtered or unexported fields
}

Datastore used to setup data within neo4j

func NewDatastore

func NewDatastore(uri, instance, testdata string) (*Datastore, error)

NewDatastore creates a new datastore for a test

func (*Datastore) CleanUpInstance

func (ds *Datastore) CleanUpInstance(instanceID string) error

CleanUpInstance removes the instance node for the given instance ID

func (*Datastore) CreateCPIHCodeList

func (ds *Datastore) CreateCPIHCodeList() error

func (*Datastore) CreateGenericHierarchy

func (ds *Datastore) CreateGenericHierarchy(hierarchyCode string) error

CreateGenericHierarchy the neo4j database

func (*Datastore) CreateInstanceNode

func (ds *Datastore) CreateInstanceNode(instanceID string) (int64, error)

CreateInstanceNode creates a new instance node for the given instance ID

func (*Datastore) GetInstanceProperties

func (ds *Datastore) GetInstanceProperties(instanceID string) (map[string]interface{}, error)

GetInstanceProperties returns a map of properties that are stored on the instance node

func (*Datastore) Setup

func (ds *Datastore) Setup() error

Setup the neo4j database

func (*Datastore) TeardownHierarchy

func (ds *Datastore) TeardownHierarchy() error

TeardownHierarchy removes all hierarchy nodes within neo4j

func (*Datastore) TeardownInstance

func (ds *Datastore) TeardownInstance() error

TeardownInstance removes all instance nodes within neo4j

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL