Skip to content

polyrabbit/nebula-go

 
 

Repository files navigation

nebula-go

IMPORTANT: Code of Nebula go client has been transferred from nebula-clients to this repository(nebula-go), and new releases in the future will be published in this repository. Please update your go.mod and imports correspondingly.

Official Nebula Go client which communicates with the server using fbthrift. Currently the latest stable release is v2.0.0-ga

The code in master branch will be updated to accommodate the nightly changes made in Nebula Graph. To Use the console with a stable release of Nebula Graph, please check the branches and use the corresponding version.

Client version Nebula Service Version
v1.0.0 1.x.x
v2.0.0-beta 2.0.0-beta
v2.0.0-rc1 2.0.0-rc1
v2.0.0-ga 2.0.0-ga
v2.0.0-master 2.0.0-nightly

Please be careful not to modify the files in the nebula directory, these codes were all generated by fbthrift.

Install & Update

$ go get -u -v github.com/vesoft-inc/nebula-go@master

You can specify the version of Nebula-go by substituting <branch> in $ go get -u -v github.com/vesoft-inc/nebula-go@<branch>.

Note: You will get a message like:

$ go get -u -v github.com/vesoft-inc/nebula-go@master
go: github.com/vesoft-inc/nebula-go master => v1.1.1-0.20210416024212-052593cefbb9

Here the v1.1.1-xxxx is a version tag auto-generated by Github. The version of nebula-go is only relevant to the branch. According to the Golang module convention, a dependency with a version >=2.0 has to be in the secondary directory. To reduce confusion, we put different versions of nebula-go to corresponding branches.

Usage example

Simple Code Example

Code Example with Gorountines

About

Nebula client in Golang

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.7%
  • Makefile 0.3%