Versions in this module Expand all Collapse all v2 v2.0.0 Dec 11, 2023 Changes in this version + const ConnectStatusConnected + const ConnectStatusConnecting + const ConnectStatusDisconnected + type BindExecResponse struct + Completion *frame.CommandCompletion + DataRows []*frame.DataRow + type Client struct + ConnectStatus ConnectStatus + Dsn DataSourceName + Location *time.Location + func NewClient() (c *Client) + func (c *Client) AutoSSL() (err error) + func (c *Client) BindExec(name string, args []driver.Value) (res BindExecResponse, err error) + func (c *Client) CancelRequest() (err error) + func (c *Client) CloseParse(name string) (err error) + func (c *Client) Connect(ctx context.Context, dsn DataSourceName) (err error) + func (c *Client) GetNotification() (pid uint32, channel, message string, err error) + func (c *Client) IsInTransaction() bool + func (c *Client) Listen(channel string) (err error) + func (c *Client) Parse(name, query string) (res ParseResponse, err error) + func (c *Client) QueryNoArgs(query string) (res SimpleQueryResponse, err error) + func (c *Client) Startup() (err error) + func (c *Client) Terminate() (err error) + func (c *Client) TestConn() ([]byte, error) + type ConnectStatus int + type DataSourceName struct + ConnectTimeout time.Duration + Host string + Parameter map[string]string + Password string + Port string + SSL struct{ ... } + func ParseDSN(connectStr string) (dsn DataSourceName, err error) + func (dsn *DataSourceName) Address() (network, address string, timeout time.Duration) + func (dsn *DataSourceName) SSLCheck() (err error) + type NotificationHandler func(pid uint32, channel, message string) + type ParseResponse struct + Parameters *frame.ParameterDescription + Rows *frame.RowDescription + type SimpleQueryResponse struct