This repository has been archived by the owner. It is now read-only.
MonetDB driver for Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE.txt
README.md
conn.go
converter.go
converter_test.go
doc.go
driver.go
driver_test.go
mapi.go
result.go
rows.go
stmt.go
tx.go
types.go
types_test.go

README.md

go-monetdb

MonetDB driver for Go.

Build Status

Installation

To install the monetdb package to your $GOPATH, simply use the go tool. Make sure you have Git installed.

$ go get github.com/fajran/go-monetdb

Usage

This Go MonetDB driver implements Go's database/sql/driver interface. Once you import it, you can use the standard Go database API to access MonetDB.

import (
	"database/sql"
	_ "github.com/fajran/go-monetdb"
)

Then use monetdb as the driver name and Data Source Name (DSN) as specified in the next section.

db, err := sql.Open("monetdb", "username:password@hostname:50000/database")

Data Source Name (DSN)

The format of the DSN is the following

[username[:password]@]hostname[:port]/database

Currently, you can only use a domain name or an IPv4 address for the hostname. IPv6 address is not yet supported. Feel free to send pull request!

If the port is blank, then the default port 50000 will be used.

API Documentation

http://godoc.org/github.com/fajran/go-monetdb