osql

package
v1.0.0-...-26db8b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2015 License: MIT Imports: 14 Imported by: 0

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

func NewRows

func NewRows(docs []*oschema.ODocument) *ogonoriRows

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL