MonetDB driver for Go.
To install the
monetdb package to your
$GOPATH, simply use
go tool. Make sure you have Git installed.
$ go get github.com/fajran/go-monetdb
This Go MonetDB driver implements Go's
Once you import it, you can use the standard Go database API to access MonetDB.
import ( "database/sql" _ "github.com/fajran/go-monetdb" )
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
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!
port is blank, then the default port
50000 will be used.