neo4go

package module
v0.0.0-...-a81481e Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: LGPL-2.1 Imports: 7 Imported by: 0

README

neo4go

Go package simplifying work with the Neo4j database.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	anytype.List
	Commit() anytype.List
}

Interface for a collection.

Extends:

  • anytype.List.

type Connection

type Connection interface {
	io.Closer
	Query(query string, params anytype.Object) (anytype.List, error)
	NewCollection(entity string) (Collection, error)
}

Interface for a connection to a database.

Extends:

  • io.Closer.

func NewConnection

func NewConnection(address string, user string, password string) (Connection, error)

Creates a new Neo4j connection.

Parameters:

  • address - address of the database (port 7687 assumed if not specified),
  • user - username,
  • password - password of the user.

Returns:

  • pointer to the created connection,
  • error if any occurred.

Jump to

Keyboard shortcuts

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