database

package
v0.0.0-...-bff8ed8 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseDriver

func CloseDriver(driver neo4j.Driver) error

func CreateDriver

func CreateDriver(uri, username, password string) (neo4j.Driver, error)

func EdgeQuery

func EdgeQuery(driver neo4j.Driver, Cypher string, DB string) ([]neo4j.Relationship, error)
	EdgeQuery is common API for Querying relationship in neo4j DB
   	the cypher string must use "r"(relationship) as the obj name
	example:
		  "MATCH (r) RETURN n, r.weight as weight LIMIT 100"
    neo4j.Relationship slice are return value.

func NodeCreate

func NodeCreate(driver neo4j.Driver, Cypher string, DB string) error

func NodeQuery

func NodeQuery(driver neo4j.Driver, Cypher string, DB string) ([]neo4j.Node, error)
	NodeQuery is common API for Querying NODE in neo4j DB
   	the cypher string must use "n"(node) as the obj name
	example:
		  "MATCH (n) RETURN n, n.Desc as desString, n.name as objName LIMIT 100"
    neo4j.Node slice are return value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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