Documentation
¶
Index ¶
- type Connector
- func (conn *Connector) Close() error
- func (conn *Connector) Exec(query string, args ...driver.Value) (driver.Result, error)
- func (conn *Connector) Query(query string, args ...driver.Value) (driver.Rows, error)
- func (conn *Connector) StmtExecute(sql string, params *Param) (res driver.Result, err error)
- func (conn *Connector) StmtQuery(sql string, params *Param) (rows driver.Rows, err error)
- func (conn *Connector) Subscribe(restart bool, topic string, sql string, interval time.Duration) (Subscriber, error)
- type Param
- func (p *Param) AddBigint(value int) *Param
- func (p *Param) AddBinary(value []byte) *Param
- func (p *Param) AddBool(value bool) *Param
- func (p *Param) AddDouble(value float64) *Param
- func (p *Param) AddFloat(value float32) *Param
- func (p *Param) AddInt(value int) *Param
- func (p *Param) AddNchar(value string) *Param
- func (p *Param) AddNull() *Param
- func (p *Param) AddSmallint(value int) *Param
- func (p *Param) AddTimestamp(value time.Time, precision int) *Param
- func (p *Param) AddTinyint(value int) *Param
- func (p *Param) AddUBigint(value uint) *Param
- func (p *Param) AddUInt(value uint) *Param
- func (p *Param) AddUSmallint(value uint) *Param
- func (p *Param) AddUTinyint(value uint) *Param
- func (p *Param) SetBigint(column int, value int)
- func (p *Param) SetBinary(column int, value []byte)
- func (p *Param) SetBool(column int, value bool)
- func (p *Param) SetDouble(column int, value float64)
- func (p *Param) SetFloat(column int, value float32)
- func (p *Param) SetInt(column int, value int)
- func (p *Param) SetNchar(column int, value string)
- func (p *Param) SetNull(column int)
- func (p *Param) SetSmallint(column int, value int)
- func (p *Param) SetTimestamp(column int, value time.Time, precision int)
- func (p *Param) SetTinyint(column int, value int)
- func (p *Param) SetUBigint(column int, value uint)
- func (p *Param) SetUInt(column int, value uint)
- func (p *Param) SetUSmallint(column int, value uint)
- func (p *Param) SetUTinyint(column int, value uint)
- type Stmt
- func (s *Stmt) AddBatch() error
- func (s *Stmt) BindRow(row *Param) error
- func (s *Stmt) Close() error
- func (s *Stmt) Execute() error
- func (s *Stmt) GetAffectedRows() int
- func (s *Stmt) GetResultRows() (driver.Rows, error)
- func (s *Stmt) Prepare(sql string) error
- func (s *Stmt) SetTableName(tableName string) error
- func (s *Stmt) SetTableNameWithTags(tableName string, tags *Param) error
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
func (*Connector) StmtExecute ¶
type Param ¶
type Param struct {
// contains filtered or unexported fields
}
func (*Param) AddSmallint ¶
func (*Param) AddTinyint ¶
func (*Param) AddUBigint ¶
func (*Param) AddUSmallint ¶
func (*Param) AddUTinyint ¶
func (*Param) SetSmallint ¶
func (*Param) SetTimestamp ¶
func (*Param) SetTinyint ¶
func (*Param) SetUBigint ¶
func (*Param) SetUSmallint ¶
func (*Param) SetUTinyint ¶
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func (*Stmt) GetAffectedRows ¶
func (*Stmt) SetTableName ¶
Click to show internal directories.
Click to hide internal directories.