Documentation
¶
Index ¶
- type Client
- func (c *Client) CancelRequest() (err error)
- func (c *Client) Close() (err error)
- func (c *Client) CloseParse(name string) (err error)
- func (c *Client) IsInTransaction() bool
- func (c *Client) Parse(name, query string) (res Response, err error)
- func (c *Client) ParseExec(name string, args []driver.Value) (res Response, err error)
- func (c *Client) ParseQuery(name string, args []driver.Value) (res Response, err error)
- func (c *Client) QueryNoArgs(query string) (res Response, err error)
- func (c *Client) Terminate() (err error)
- type Response
- type Statement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { StatementMaps map[string]*Statement // 句柄缓存,交给client管理,方便在断开时释放资源 Location *time.Location // 服务器端的时区 NotifyChan chan *frame.Notification // 异步消息通道 Err *frame.Error // 业务上最近的错误帧 IOError error // 底层通信错误 // contains filtered or unexported fields }
func (*Client) CancelRequest ¶
CancelRequest 建立新连接,使用PID+口令从新连接中发出指令
func (*Client) CloseParse ¶
func (*Client) IsInTransaction ¶
func (*Client) ParseQuery ¶
ParseQuery BindFrame
type Response ¶
type Response struct { ParameterDescription *frame.ParameterDescription Description *frame.RowDescription DataRows []*frame.DataRow Completion *frame.CommandCompletion }
Response 业务响应的数据集
Click to show internal directories.
Click to hide internal directories.