Documentation ¶
Index ¶
- Constants
- func Debug(callback func(message string))
- func Error(callback func(message string))
- func Escape(line string) string
- func Fatal(callback func(message string))
- func Info(callback func(message string))
- func Unescape(line string) string
- func Warn(callback func(message string))
- type Conn
- func (conn *Conn) Attempts(amount int, wait int)
- func (conn *Conn) Compression(compression bool)
- func (conn *Conn) ConnectTimeout(timeout int)
- func (conn *Conn) Exec(query string) error
- func (conn *Conn) Fetch(query string) (Iter, error)
- func (conn *Conn) FetchOne(query string) (Result, error)
- func (conn *Conn) ForcedExec(query string) error
- func (conn *Conn) ForcedFetch(query string) (Iter, error)
- func (conn *Conn) ForcedFetchOne(query string) (Result, error)
- func (conn *Conn) MaxMemoryUsage(limit int)
- func (conn *Conn) ReceiveTimeout(timeout int)
- func (conn *Conn) SendTimeout(timeout int)
- type Iter
- type Limiter
- type Result
- func (result Result) Bool(column string) (f bool, err error)
- func (result Result) Bytes(column string) (bytes []byte, err error)
- func (result Result) Columns() (columns []string)
- func (result Result) Date(column string) (t time.Time, err error)
- func (result Result) DateTime(column string) (t time.Time, err error)
- func (result Result) Exist(column string) bool
- func (result Result) Float32(column string) (f32 float32, err error)
- func (result Result) Float64(column string) (f64 float64, err error)
- func (result Result) Int16(column string) (i16 int16, err error)
- func (result Result) Int32(column string) (i32 int32, err error)
- func (result Result) Int64(column string) (i64 int64, err error)
- func (result Result) Int8(column string) (i8 int8, err error)
- func (result Result) String(column string) (value string, err error)
- func (result Result) UInt16(column string) (ui16 uint16, err error)
- func (result Result) UInt32(column string) (ui32 uint32, err error)
- func (result Result) UInt64(column string) (ui64 uint64, err error)
- func (result Result) UInt8(column string) (ui8 uint8, err error)
Constants ¶
View Source
const ( MegaByte = 1024 * 1024 GigaByte = 1024 * MegaByte )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct { Limiter // contains filtered or unexported fields }
func (*Conn) Compression ¶
Compression sets new send timeout
func (*Conn) ConnectTimeout ¶
ConnectTimeout sets new connection timeout
func (*Conn) ForcedExec ¶
ForcedExec executes new query without requests limits
func (*Conn) ForcedFetch ¶
ForcedFetch executes new query and fetches all data without requests limits
func (*Conn) ForcedFetchOne ¶
ForcedFetchOne executes new query and fetches one row without requests limits
func (*Conn) MaxMemoryUsage ¶
MaxMemoryUsage sets new maximum memory usage value
func (*Conn) ReceiveTimeout ¶
ReceiveTimeout sets new receive timeout
func (*Conn) SendTimeout ¶
SendTimeout sets new send timeout
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
func (*Limiter) MaxRequests ¶
MaxRequests sets requests limitation (zero is limitation off)
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.