Library
Embed gr in a Go program: open databases, run queries, manage transactions, and read graph objects.
gr is first a Go library.
Import github.com/tamnd/gr, open a .gr file, and run Cypher queries inside your program.
No server, no connection string, no connection pool.
These pages walk the full library API: the database lifecycle, running queries, transactions, and working with the Node, Relationship, and Path values gr returns.
Opening a database
gr.Open, Options, the file lifecycle, in-memory databases, and db.Info().
Running queries
db.Run, db.Query, db.Exec, iterating Result, the value model, parameters, and Summary.
Transactions
Explicit transactions, managed write closures, retry semantics, and isolation.
Graph objects
Node, Relationship, Path, ElementId, and the value model type switch.