Documentation
¶
Index ¶
- Variables
- func Init()
- type Async
- func (a *Async) TaosExec(taosConnect unsafe.Pointer, sql string, timeFormat parser.FormatTimeFunc) (*ExecResult, error)
- func (a *Async) TaosExecWithoutResult(taosConnect unsafe.Pointer, sql string) error
- func (a *Async) TaosFetchRawBlockA(res unsafe.Pointer, handler *Handler) (*Result, error)
- func (a *Async) TaosQuery(taosConnect unsafe.Pointer, sql string, handler *Handler) (*Result, error)
- type Caller
- type ExecResult
- type Handler
- type HandlerPool
- type Result
- type Stmt2ExecResult
Constants ¶
This section is empty.
Variables ¶
View Source
var FetchRowError = errors.New("fetch row error")
Functions ¶
Types ¶
type Async ¶
type Async struct {
HandlerPool *HandlerPool
}
var GlobalAsync *Async
func NewAsync ¶
func NewAsync(handlerPool *HandlerPool) *Async
func (*Async) TaosExec ¶
func (a *Async) TaosExec(taosConnect unsafe.Pointer, sql string, timeFormat parser.FormatTimeFunc) (*ExecResult, error)
func (*Async) TaosExecWithoutResult ¶
func (*Async) TaosFetchRawBlockA ¶
type Caller ¶
type Caller struct {
QueryResult chan *Result
FetchResult chan *Result
ExecResult chan *Stmt2ExecResult
}
type ExecResult ¶
type HandlerPool ¶
type HandlerPool struct {
// contains filtered or unexported fields
}
func NewHandlerPool ¶
func NewHandlerPool(count int) *HandlerPool
func (*HandlerPool) Get ¶
func (c *HandlerPool) Get() *Handler
func (*HandlerPool) Put ¶
func (c *HandlerPool) Put(handler *Handler)
Click to show internal directories.
Click to hide internal directories.