Documentation ¶
Overview ¶
Go OrientDB Driver - An OrientDB-Driver for Go's database/sql package
The driver should be used via the database/sql package:
import "database/sql" import _ "gopkg.in/istreamdata/orientgo.v1/osql"
db, err := sql.Open("ogonori", "admin@admin:127.0.0.1/ogonoriTest")
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OgonoriDriver ¶
type OgonoriDriver struct{}
Implements the Go sql/driver.Driver interface.
func (*OgonoriDriver) Open ¶
func (d *OgonoriDriver) Open(dsn string) (driver.Conn, error)
Open returns a new connection to the database. The dsn (driver-specific name) is a string in a driver-specific format. For ogonori, the dsn should be of the format:
uname@passw:ip-or-host:port/dbname or uname@passw:ip-or-host/dbname (default port of 2424 is used)
Click to show internal directories.
Click to hide internal directories.