Registry / database / neo4j-neo4j-go-driver-v5

neo4j-neo4j-go-driver-v5

JSON →
library5.28.4gogounverified

Official Neo4j driver for Go, providing a client for the Neo4j graph database.

go get github.com/neo4j/neo4j-go-driver/v5
INSTALL
IMPORT
SIG · NEO4J-NEO4J-GO-DRI
N
neo4j-neo4j-go-driver-v5
databasegov5.28.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

neo4j
github.com/neo4j/neo4j-go-driver/v5/neo4j

Connects to Neo4j and runs a simple query.

package main import ( "context" "fmt" "github.com/neo4j/neo4j-go-driver/v5/neo4j" ) func main() { driver, _ := neo4j.NewDriverWithContext("bolt://localhost:7687", neo4j.BasicAuth("neo4j", "password", "")) defer driver.Close(context.Background()) session := driver.NewSession(context.Background(), neo4j.SessionConfig{}) defer session.Close(context.Background()) result, _ := session.Run(context.Background(), "RETURN 1", nil) if result.Next(context.Background()) { fmt.Println(result.Record().Values[0]) } }
Debug
Known issues
breakingThe driver v5 has breaking API changes compared to v4, especially with context usage.
fix
Refer to the migration guide when upgrading from v4 to v5.
affects: >=5.0.0
Upgrade
Version history
5.28.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
neo4j-neo4j-go-driver-v5 — go get neo4j-neo4j-go-driver-v5 · libregistry