tree: f3ae4cd41357f6e9059884957b47969debe91aa8 [path history] [tgz]
  1. age/
  2. parser/
  3. samples/
  4. docker-compose.yml
  5. go.mod
  6. go.sum
  7. LICENSE
  8. README.md
  9. TYPES.md
drivers/golang/README.md

age AGType parser and driver support for Golang

AGType parser and driver support for Apache AGE, graph extension for PostgreSQL.

Features

  • Unmarshal AGE result data(AGType) to Vertex, Edge, Path
  • Cypher query support for 3rd. Party sql driver (enables to use cypher queries directly)

Prerequisites

Go get

go get github.com/apache/age/drivers/golang

gomod

require  github.com/apache/age/drivers/golang {version}

Check latest version

For more information about Apache AGE

Check AGE loaded on your PostgreSQL

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;

Test

Check out and rewrite DSN in age/drivers/golang/age/age_test.go

cd age/drivers/golang/age
go test . -v

Samples

License

Apache-2.0 License