MonetDB-Go

module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MPL-2.0

README

go-monetdb

MonetDB driver for Go.

Installation

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

$ go get github.com/MonetDB/MonetDB-Go

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/MonetDB/MonetDB-Go/src"
)

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

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

API Documentation

https://pkg.go.dev/github.com/fajran/go-monetdb

Directories

Path Synopsis
Package monetdb contains a database driver for MonetDB.
Package monetdb contains a database driver for MonetDB.

Jump to

Keyboard shortcuts

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