• Stars
    star
    127
  • Rank 282,790 (Top 6 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created about 5 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Nebula client in Golang

nebula-go

Go Reference functional tests codecov

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 v3.4.0

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

Client version Nebula Service Version
v1.0.0 1.x.x
v2.0.0-ga 2.0.0-ga, 2.0.1
v2.5.1 2.5.0
v2.6.0 2.6.0
v3.0.0 3.0.0
v3.1.x 3.1.x
v3.2.x 3.1.x-3.2.x
v3.3.x 3.1.x-3.3.x
v3.4.x 3.1.x-3.4.x
v3.5.x 3.1.x-3.5.x
master 3.x-nightly

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

NOTE Installing Nebula Go v2.5.0 could cause checksum mismatch, use v2.5.1 instead.

Install & Update

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

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

for v3: $ go get -u -v github.com/vesoft-inc/nebula-go/[email protected]

for v2: $ go get -u -v github.com/vesoft-inc/nebula-go/[email protected]

Note: You will get a message like this if you don't specify a tag:

$ go get -u -v github.com/vesoft-inc/nebula-go/v2@master
go: github.com/vesoft-inc/nebula-go/v2 master => v2.0.0-20210506025434-97d4168c5c4d

Here the 20210506025434-97d4168c5c4d is a version tag auto-generated by GitHub using commit date and SHA. This should match the latest commit in the master branch.

Usage example

Simple Code Example

Code Example with Goroutines

Session Pool Example

There are some limitations while using the session pool:

  1. There MUST be an existing space in the DB before initializing the session pool.
  2. Each session pool is corresponding to a single USER and a single Space. This is to ensure that the user's access control is consistent. i.g. The same user may have different access privileges in different spaces. If you need to run queries in different spaces, you may have multiple session pools.
  3. Every time when sessionPool.Execute() is called, the session will execute the query in the space set in the session pool config.
  4. Commands that alter passwords or drop users should NOT be executed via session pool.

Code of Conduct

This project and everyone participating in it is governed by the Vesoft Code of Conduct. By participating, you are expected to uphold this code.

Licensing

Nebula GO is under Apache 2.0 license, so you can freely download, modify, and deploy the source code to meet your needs. You can also freely deploy Nebula GO as a back-end service to support your SaaS deployment.

More Repositories

1

nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
C++
10,313
star
2

nebula-graph

A distributed, fast open-source graph database featuring horizontal scalability and high availability. This is an archived repo for v2.5 only, from 2.6.0 +, NebulaGraph switched back to https://github.com/vesoft-inc/nebula
C++
844
star
3

github-statistics

A react static app for displaying github repo statistics like Star History, Fork History and more.
JavaScript
311
star
4

nebula-studio

NebulaGraph Web GUI Tools
TypeScript
188
star
5

nebula-python

Client API of Nebula Graph in Python
Python
181
star
6

nebula-java

Client API and data importer of Nebula Graph in Java
Java
163
star
7

nebula-docker-compose

Docker compose for Nebula Graph
Smarty
101
star
8

nebula-importer

Nebula Graph Importer with Go
Go
88
star
9

nebulagraph-veditor

A Highly customizable JavaScript Diagramming Lib with SVG, HTML, Canvas support.
TypeScript
80
star
10

nebula-operator

Operation utilities for Nebula Graph
Go
77
star
11

nebula-algorithm

Nebula-Algorithm is a Spark Application based on GraphX, which enables state of art Graph Algorithms to run on top of NebulaGraph and write back results to NebulaGraph.
Scala
67
star
12

nebula-storage

A distributed consistent graph storage. This is an archived repo for v2.5 only, from 2.6.0 +, NebulaGraph switched back to https://github.com/vesoft-inc/nebula
C++
59
star
13

nebula-console

Command line interface for the Nebula Graph service
Go
54
star
14

nebula-community

A place where community members and learn from and collaborate with each other.
53
star
15

nebula-docs-cn

Repository for the Chinese documentations
HTML
52
star
16

nebula-docs

Documentations for the Nebula Graph project
HTML
51
star
17

nebula-flink-connector

Flink Connector for Nebula Graph
Java
47
star
18

nebula-spark-connector

Scala
39
star
19

nebula-rust

Nebula Graph Client API in Rust
Rust
34
star
20

nebula-common

Common code for all Nebula projects. This is an archived repo for v2.5 only, from 2.6.0 +, NebulaGraph switched back to https://github.com/vesoft-inc/nebula
C++
31
star
21

nebula-dashboard

Nebula Graph Service Monitor Tool
TypeScript
28
star
22

nebula-exchange

NebulaGraph Exchange is an Apache Spark application to parse data from different sources to NebulaGraph in a distributed environment. It supports both batch and streaming data in various formats and sources including other Graph Databases, RDBMS, Data warehouses, NoSQL, Message Bus, File systems, etc.
Scala
28
star
23

nebula-http-gateway

Gateway to provide HTTP endpoints for the Nebula Graph service.
Go
25
star
24

nebula-spark-utils

Spark related libraries and tools
Scala
23
star
25

nebula-third-party

Project to build third-party dependencies of Nebula Graph
CMake
18
star
26

nebula-cpp

Nebula Graph Client API in C++
C++
17
star
27

nebula-dev-docker

Nebula docker image for development
Shell
15
star
28

nebula-stats-exporter

Data exporter of Nebula Graph
Go
15
star
29

nebula-clients

API of Nebula Graph in different programming languages.
Java
15
star
30

nebula-br

Backup and restore utility for Nebula Graph
Go
14
star
31

k6-plugin

Go
9
star
32

nebula-chaos

Chaos framework for the Storage Service
C++
9
star
33

nebula-ansible

Jinja
6
star
34

nebula-agent

Go
6
star
35

nebula-gears

Gears for Nebula Graph
Shell
3
star
36

auto-sync-repos

sync repos automatically
Python
2
star
37

.github

Smarty
1
star
38

go-pkg

Go
1
star
39

auto-merge-pr

JavaScript
1
star