in connection.go [76:93]
func (c *conn) Close() error {
if c.connectionId == "" {
return driver.ErrBadConn
}
_, err := c.httpClient.post(context.Background(), &message.CloseConnectionRequest{
ConnectionId: c.connectionId,
})
c.connectionId = ""
if err != nil {
return c.avaticaErrorToResponseErrorOrError(err)
}
return nil
}