Documentation ¶
Index ¶
- Constants
- func BlockConvert(block unsafe.Pointer, blockSize int, fields []*stmtCommon.StmtField, ...) [][]driver.Value
- func ItemIsNull(pHeader unsafe.Pointer, row int) bool
- func StmtParseColumn(columns json.RawMessage, fields []*stmtCommon.StmtField, ...) ([][]driver.Value, error)
- func StmtParseTag(tags json.RawMessage, fields []*stmtCommon.StmtField) ([]driver.Value, error)
- type STMTController
- type StmtAddBatchReq
- type StmtAddBatchResp
- type StmtBindReq
- type StmtBindResp
- type StmtClose
- type StmtConnectReq
- type StmtConnectResp
- type StmtExecReq
- type StmtExecResp
- type StmtGetColFieldsReq
- type StmtGetColFieldsResp
- type StmtGetTagFieldsReq
- type StmtGetTagFieldsResp
- type StmtInitReq
- type StmtInitResp
- type StmtItem
- type StmtPrepareReq
- type StmtPrepareResp
- type StmtSetTableNameReq
- type StmtSetTableNameResp
- type StmtSetTagsReq
- type StmtSetTagsResp
- type TaosStmt
- type WSStmtErrorResp
Constants ¶
View Source
const ( STMTConnect = "conn" STMTInit = "init" STMTPrepare = "prepare" STMTSetTableName = "set_table_name" STMTSetTags = "set_tags" STMTBind = "bind" STMTAddBatch = "add_batch" STMTExec = "exec" STMTClose = "close" STMTGetTagFields = "get_tag_fields" STMTGetColFields = "get_col_fields" )
View Source
const ( SetTagsMessage = 1 BindMessage = 2 )
View Source
const TaosStmtKey = "taos_stmt"
Variables ¶
This section is empty.
Functions ¶
func BlockConvert ¶
func BlockConvert(block unsafe.Pointer, blockSize int, fields []*stmtCommon.StmtField, fieldTypes []*types.ColumnType) [][]driver.Value
func StmtParseColumn ¶
func StmtParseColumn(columns json.RawMessage, fields []*stmtCommon.StmtField, fieldTypes []*types.ColumnType) ([][]driver.Value, error)
func StmtParseTag ¶
func StmtParseTag(tags json.RawMessage, fields []*stmtCommon.StmtField) ([]driver.Value, error)
Types ¶
type STMTController ¶
type STMTController struct {
// contains filtered or unexported fields
}
func NewSTMTController ¶
func NewSTMTController() *STMTController
func (*STMTController) Init ¶
func (s *STMTController) Init(ctl gin.IRouter)
type StmtAddBatchReq ¶
type StmtAddBatchResp ¶
type StmtBindReq ¶
type StmtBindReq struct { ReqID uint64 `json:"req_id"` StmtID uint64 `json:"stmt_id"` Columns json.RawMessage `json:"columns"` }
type StmtBindResp ¶
type StmtConnectReq ¶
type StmtConnectResp ¶
type StmtExecReq ¶
type StmtExecResp ¶
type StmtGetColFieldsReq ¶
type StmtGetColFieldsResp ¶
type StmtGetTagFieldsReq ¶
type StmtGetTagFieldsResp ¶
type StmtInitReq ¶
type StmtInitReq struct {
ReqID uint64 `json:"req_id"`
}
type StmtInitResp ¶
type StmtPrepareReq ¶
type StmtPrepareResp ¶
type StmtSetTableNameReq ¶
type StmtSetTableNameResp ¶
type StmtSetTagsReq ¶
type StmtSetTagsReq struct { ReqID uint64 `json:"req_id"` StmtID uint64 `json:"stmt_id"` Tags json.RawMessage `json:"tags"` }
type StmtSetTagsResp ¶
Click to show internal directories.
Click to hide internal directories.