Versions in this module Expand all Collapse all v2 v2.0.2 Jan 30, 2024 Changes in this version + const MAPI_ARRAY_SIZE + const MDB_BIGINT + const MDB_BLOB + const MDB_BOOLEAN + const MDB_CHAR + const MDB_CLOB + const MDB_DATE + const MDB_DECIMAL + const MDB_DOUBLE + const MDB_FLOAT + const MDB_HUGEINT + const MDB_INT + const MDB_INTERVAL + const MDB_LONGINT + const MDB_MEDIUMINT + const MDB_MONTH_INTERVAL + const MDB_NULL + const MDB_REAL + const MDB_SEC_INTERVAL + const MDB_SERIAL + const MDB_SHORTINT + const MDB_SMALLINT + const MDB_TIME + const MDB_TIMESTAMP + const MDB_TIMESTAMPTZ + const MDB_TINYINT + const MDB_VARCHAR + const MDB_WRD + func ConvertToMonet(value Value) (string, error) + func Cut(s, sep string) (before, after string, found bool) + type Date struct + Day int + Month time.Month + Year int + func GetDate(t time.Time) Date + func (d Date) String() string + func (d Date) Time() time.Time + type MapiConn struct + Database string + Hostname string + Language string + Password string + Port int + State int + Username string + func NewMapi(name string) (*MapiConn, error) + 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 struct + ColumnCount int + ExecId int + LastRowId int + Offset int + QueryId int + RowCount int + type Query struct + Mapi *MapiConn + SqlQuery string + func (q *Query) ExecuteNamedQuery(r *ResultSet, names []string, args []Value) (string, error) + func (q *Query) ExecutePreparedQuery(r *ResultSet, args []Value) (string, error) + func (q *Query) ExecuteQuery(r *ResultSet) (string, error) + func (q *Query) PrepareQuery(r *ResultSet) error + type ResultSet struct + Metadata Metadata + Rows [][]Value + Schema []TableElement + func (s *ResultSet) CreateExecString(args []Value) (string, error) + func (s *ResultSet) CreateNamedString(query string, names []string, args []Value) (string, error) + func (s *ResultSet) StoreResult(r string) error + type TableElement struct + ColumnName string + ColumnType string + DisplaySize int + InternalSize int + NullOk int + Precision int + Scale int + type Time struct + Hour int + Min int + Sec int + func GetTime(t time.Time) Time + func (t Time) String() string + func (t Time) Time() time.Time + type Value interface v2.0.1 Jan 25, 2024