Documentation ¶
Overview ¶
Package monetdb contains a database driver for MonetDB.
Use the following format for the Data Source Name (DSN) to make connection to the MonetDB server.
[username[:password]@]hostname[:port]/database
If the port is not specified, then the default port 50000 will be used.
Please check the project's GitHub page for more complete documentation - https://github.com/fajran/go-monetdb
Index ¶
Constants ¶
const MAPI_STATE_INIT = 0
MAPI connection is NOT established.
const MAPI_STATE_READY = 1
MAPI connection is established.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Date ¶
Time represents MonetDB's Date datatype.
type MapiConn ¶
type MapiConn struct { Hostname string Port int Username string Password string Database string Language string State int // contains filtered or unexported fields }
MapiConn is a MonetDB's MAPI connection handle.
The values in the handle are initially set according to the values that are provided when calling NewMapi. However, they may change depending on how the MonetDB server redirects the connection. The final values are available after the connection is made by calling the Connect() function.
The State value can be either MAPI_STATE_INIT or MAPI_STATE_READY.
func NewMapi ¶
NewMapi returns a MonetDB's MAPI connection handle.
To establish the connection, call the Connect() function.
type Result ¶
type Result struct {
// contains filtered or unexported fields
}