AGType parser and driver support for Apache AGE, graph extension for PostgreSQL.
go get github.com/apache/age/drivers/golang
require github.com/apache/age/drivers/golang {version}
Check latest version
Connect to your containerized Postgres instance and then run the following commands:
# psql CREATE EXTENSION age; LOAD 'age'; SET search_path = ag_catalog, "$user", public;
Check out and rewrite DSN in age/drivers/golang/age/age_test.go
cd age/drivers/golang/age go test . -v
Usage 1: using database/sql API and Cypher execution function ‘ExecCypher’ Sample : samples/sql_api_sample.go
Usage 2: using Age Wrapper Sample : samples/age_wrapper_sample.go
Run Samples : samples/main.go
Apache-2.0 License