Documentation
¶
Index ¶
- Constants
- func ConvertToMonet(value Value) (string, error)
- func Cut(s, sep string) (before, after string, found bool)
- type Date
- type MapiConn
- func (c *MapiConn) Connect() error
- func (c *MapiConn) Disconnect()
- func (c *MapiConn) Execute(query string) (string, error)
- func (c *MapiConn) FetchNext(queryId int, offset int, amount int) (string, error)
- func (c *MapiConn) SetAutoCommit(enable bool) (string, error)
- func (c *MapiConn) SetReplySize(size int) (string, error)
- func (c *MapiConn) SetSizeHeader(enable bool) (string, error)
- type Metadata
- type Query
- type ResultSet
- type TableElement
- type Time
- type Value
Constants ¶
View Source
const ( MDB_CHAR = "char" // (L) character string with length L MDB_VARCHAR = "varchar" // (L) string with atmost length L MDB_CLOB = "clob" MDB_BLOB = "blob" MDB_DECIMAL = "decimal" // (P,S) MDB_SMALLINT = "smallint" // 16 bit integer MDB_INT = "int" // 32 bit integer MDB_BIGINT = "bigint" // 64 bit integer MDB_HUGEINT = "hugeint" // 64 bit integer MDB_SERIAL = "serial" // special 64 bit integer sequence generator MDB_REAL = "real" // 32 bit floating point MDB_DOUBLE = "double" // 64 bit floating point MDB_BOOLEAN = "boolean" MDB_DATE = "date" MDB_NULL = "NULL" MDB_TIME = "time" // (T) time of day MDB_TIMESTAMP = "timestamp" // (T) date concatenated with unique time MDB_INTERVAL = "interval" // (Q) a temporal interval MDB_MONTH_INTERVAL = "month_interval" MDB_SEC_INTERVAL = "sec_interval" MDB_WRD = "wrd" MDB_TINYINT = "tinyint" // Not on the website: MDB_SHORTINT = "shortint" MDB_MEDIUMINT = "mediumint" MDB_LONGINT = "longint" MDB_FLOAT = "float" MDB_TIMESTAMPTZ = "timestamptz" )
View Source
const (
MAPI_ARRAY_SIZE = 100
)
Variables ¶
This section is empty.
Functions ¶
func ConvertToMonet ¶
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 Query ¶
func (*Query) ExecuteNamedQuery ¶
func (*Query) ExecutePreparedQuery ¶
func (*Query) PrepareQuery ¶
type ResultSet ¶
type ResultSet struct { Metadata Metadata Schema []TableElement Rows [][]Value }
func (*ResultSet) CreateExecString ¶
func (*ResultSet) CreateNamedString ¶
func (*ResultSet) StoreResult ¶
type TableElement ¶
Click to show internal directories.
Click to hide internal directories.