Go (golang) client for OrientDB
OrientGo is a Go client for the OrientDB database.
OrientDB versions supported: 2.0.15 - 2.1.5
Not supported versions:
Driver is no longer maintained and seeking for a new owner.
Original ogonori API is deprecated. Still, it's source code have been frozen in v1.0 branch. To use it, simply replace
database/sqlAPI, with some cautions (see below).
WARNING: database/sql API is disabled for now.
database/sqlAPI has some constraints that can be make it painful to work with OrientDB. For example:
database/sqlAPI only allows one to return a single int64 identifier for the record, but OrientDB uses as a compound int16:int64 RID, so getting the RID of records you just inserted requires another round trip to the database to query the RID.
Also, since OrientDB transactions are not supported, the
Txportion of the
database/sqlAPI is not yet implemented.
You are welcome to initiate pull request and suggest a more user-friendly API. We will try to review them ASAP.
1) Install Docker
2) Pull OrientDB image:
docker pull dennwc/orientdb:2.1
go test -v ./...
Dial example - dialexampletest.go
The MIT License