Documentation ¶
Index ¶
- type Connector
- func (conn *Connector) Close() error
- func (conn *Connector) Exec(query string, args ...driver.Value) (driver.Result, error)
- func (conn *Connector) ExecWithReqID(query string, reqID int64, args ...driver.Value) (driver.Result, error)
- func (conn *Connector) GetTableVGroupID(db, table string) (vgID int, err error)
- func (conn *Connector) InfluxDBInsertLines(lines []string, precision string) error
- func (conn *Connector) InsertStmt() *insertstmt.InsertStmt
- func (conn *Connector) InsertStmtWithReqID(reqID int64) *insertstmt.InsertStmt
- func (conn *Connector) OpenTSDBInsertJsonPayload(payload string) error
- func (conn *Connector) OpenTSDBInsertTelnetLines(lines []string) error
- func (conn *Connector) Query(query string, args ...driver.Value) (driver.Rows, error)
- func (conn *Connector) QueryWithReqID(query string, reqID int64, args ...driver.Value) (driver.Rows, error)
- func (conn *Connector) SelectDB(db string) error
- func (conn *Connector) Stmt() *Stmt
- func (conn *Connector) StmtExecute(sql string, params *param.Param) (res driver.Result, err error)
- func (conn *Connector) StmtExecuteWithReqID(sql string, params *param.Param, reqID int64) (res driver.Result, err error)
- type Stmt
- func (s *Stmt) AddBatch() error
- func (s *Stmt) BindRow(row *param.Param) error
- func (s *Stmt) Close() error
- func (s *Stmt) Execute() error
- func (s *Stmt) GetAffectedRows() int
- func (s *Stmt) NumParams() (int, error)
- func (s *Stmt) Prepare(sql string) error
- func (s *Stmt) SetTableName(tableName string) error
- func (s *Stmt) SetTableNameWithTags(tableName string, tags *param.Param) error
- func (s *Stmt) UseResult() (driver.Rows, error)
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 NewConnector ¶
NewConnector New connector with TDengine connection
func (*Connector) ExecWithReqID ¶
func (conn *Connector) ExecWithReqID(query string, reqID int64, args ...driver.Value) (driver.Result, error)
ExecWithReqID Execute sql with reqID
func (*Connector) GetTableVGroupID ¶
func (*Connector) InfluxDBInsertLines ¶
InfluxDBInsertLines Insert data using influxdb line format Deprecated
func (*Connector) InsertStmt ¶
func (conn *Connector) InsertStmt() *insertstmt.InsertStmt
InsertStmt Prepare batch insert stmt
func (*Connector) InsertStmtWithReqID ¶
func (conn *Connector) InsertStmtWithReqID(reqID int64) *insertstmt.InsertStmt
InsertStmtWithReqID Prepare batch insert stmt with reqID
func (*Connector) OpenTSDBInsertJsonPayload ¶
OpenTSDBInsertJsonPayload Insert data using opentsdb json format Deprecated
func (*Connector) OpenTSDBInsertTelnetLines ¶
OpenTSDBInsertTelnetLines Insert data using opentsdb telnet format Deprecated
func (*Connector) QueryWithReqID ¶
func (conn *Connector) QueryWithReqID(query string, reqID int64, args ...driver.Value) (driver.Rows, error)
QueryWithReqID Execute query sql with reqID
func (*Connector) StmtExecute ¶
StmtExecute Execute sql through stmt
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func (*Stmt) GetAffectedRows ¶
func (*Stmt) SetTableName ¶
func (*Stmt) SetTableNameWithTags ¶
Click to show internal directories.
Click to hide internal directories.