database

package
v0.0.0-...-b4bc561 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 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)

func CloseSession

func CloseSession(session neo4j.Session)

CloseSession closes the Neo4j session.

func GetDriver

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

GetDriver initializes a new Neo4j driver.

func ValidateDriver

func ValidateDriver(driver neo4j.Driver) error

ValidateDriver checks the connectivity of the Neo4j driver.

Types

type DB

type DB struct {
	neo4j.Driver
}

func NewDatabase

func NewDatabase(uri, username, password string) *DB

func (*DB) GetSession

func (driver *DB) GetSession() (neo4j.Session, error)

GetSession creates a new Neo4j session.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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