All Projects → qasaur → Gremgo

qasaur / Gremgo

Licence: mit
A fast, efficient, and easy-to-use Go client for the Apache TinkerPop graph database stack

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Gremgo

Tinkerpop
Apache TinkerPop - a graph computing framework
Stars: ✭ 1,309 (+1322.83%)
Mutual labels:  tinkerpop
Goblin
A Python 3.5 rewrite of the TinkerPop 3 OGM Goblin
Stars: ✭ 90 (-2.17%)
Mutual labels:  tinkerpop
Exram.gremlinq
A .NET object-graph-mapper for Apache TinkerPop™ Gremlin enabled databases.
Stars: ✭ 84 (-8.7%)
Mutual labels:  tinkerpop
Database
Blazegraph High Performance Graph Database
Stars: ✭ 568 (+517.39%)
Mutual labels:  tinkerpop
Janusgraph
JanusGraph: an open-source, distributed graph database
Stars: ✭ 4,277 (+4548.91%)
Mutual labels:  tinkerpop
Cypher For Gremlin
Cypher for Gremlin adds Cypher support to any Gremlin graph database.
Stars: ✭ 267 (+190.22%)
Mutual labels:  tinkerpop
gremlin-ogm
An Object Graph Mapping Library For Gremlin
Stars: ✭ 32 (-65.22%)
Mutual labels:  tinkerpop
gremtune
Golang Gremlin Tinkerpop client with AWS Neptune compatibility
Stars: ✭ 23 (-75%)
Mutual labels:  tinkerpop
mod-tinkerpop-persistor
Vert.x 2.x Persistor Module for Tinkerpop-compatible Graph Databases
Stars: ✭ 17 (-81.52%)
Mutual labels:  tinkerpop
Gremlin.Net
This repository only contains an outdated version of Gremlin.Net. For newer version head to Apache TinkerPop.
Stars: ✭ 21 (-77.17%)
Mutual labels:  tinkerpop
jelass
Janus + Elastic Search + Cassandra docker container with SSL Client Certificates implemented.
Stars: ✭ 13 (-85.87%)
Mutual labels:  tinkerpop
gizmo
OGM
Stars: ✭ 20 (-78.26%)
Mutual labels:  tinkerpop
janusgraph-docker
Yet another JanusGraph, Cassandra/Scylla and Elasticsearch in Docker Compose setup
Stars: ✭ 54 (-41.3%)
Mutual labels:  tinkerpop
Hgraphdb
HBase as a TinkerPop Graph Database
Stars: ✭ 226 (+145.65%)
Mutual labels:  tinkerpop
Gremlin Javascript
JavaScript tools for graph processing in Node.js and the browser inspired by the Apache TinkerPop API
Stars: ✭ 209 (+127.17%)
Mutual labels:  tinkerpop
Sqlg
TinkerPop graph over sql
Stars: ✭ 191 (+107.61%)
Mutual labels:  tinkerpop
Unipop
Data Integration Graph
Stars: ✭ 184 (+100%)
Mutual labels:  tinkerpop
Awesome Tinkerpop
A curated list of useful libraries for Apache TinkerPop3 and Tinkerpop2
Stars: ✭ 140 (+52.17%)
Mutual labels:  tinkerpop
Ferma
An ORM / OGM for the TinkerPop graph stack.
Stars: ✭ 130 (+41.3%)
Mutual labels:  tinkerpop
Ogre
Clojure library for querying Apache TinkerPop graphs
Stars: ✭ 118 (+28.26%)
Mutual labels:  tinkerpop

gremgo

GoDoc Build Status Go Report Card

gremgo is a fast, efficient, and easy-to-use client for the TinkerPop graph database stack. It is a Gremlin language driver which uses WebSockets to interface with Gremlin Server and has a strong emphasis on concurrency and scalability. Please keep in mind that gremgo is still under heavy development and although effort is being made to fully cover gremgo with reliable tests, bugs may be present in several areas.

Installation

go get github.com/qasaur/gremgo

Documentation

Example

package main

import (
	"fmt"
	"log"

	"github.com/qasaur/gremgo"
)

func main() {
	errs := make(chan error)
	go func(chan error) {
		err := <-errs
		log.Fatal("Lost connection to the database: " + err.Error())
	}(errs) // Example of connection error handling logic

	dialer := gremgo.NewDialer("ws://127.0.0.1:8182") // Returns a WebSocket dialer to connect to Gremlin Server
	g, err := gremgo.Dial(dialer, errs) // Returns a gremgo client to interact with
	if err != nil {
		fmt.Println(err)
    	return
	}
	res, err := g.Execute( // Sends a query to Gremlin Server with bindings
		"g.V(x)",
		map[string]string{"x": "1234"},
		map[string]string{},
	)
	if err != nil {
		fmt.Println(err)
    	return
	}
	fmt.Println(res)
}

Authentication

The plugin accepts authentication creating a secure dialer where credentials are setted. If the server where are you trying to connect needs authentication and you do not provide the credentials the complement will panic.

package main

import (
	"fmt"
	"log"

	"github.com/qasaur/gremgo"
)

func main() {
	errs := make(chan error)
	go func(chan error) {
		err := <-errs
		log.Fatal("Lost connection to the database: " + err.Error())
	}(errs) // Example of connection error handling logic

	dialer := gremgo.NewSecureDialer("127.0.0.1:8182", "username", "password") // Returns a WebSocket dialer to connect to Gremlin Server
	g, err := gremgo.Dial(dialer, errs) // Returns a gremgo client to interact with
	if err != nil {
		fmt.Println(err)
    	return
	}
	res, err := g.Execute( // Sends a query to Gremlin Server with bindings
		"g.V(x)",
		map[string]string{"x": "1234"},
		map[string]string{},
	)
	if err != nil {
		fmt.Println(err)
    	return
	}
	fmt.Println(res)
}

License

Copyright (c) 2016 Marcus Engvall

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].