func()

in connection.go [76:93]


func (c *conn) Close() error {

	if c.connectionId == "" {
		return driver.ErrBadConn
	}

	_, err := c.httpClient.post(context.Background(), message.CloseConnectionRequest_builder{
		ConnectionId: c.connectionId,
	}.Build())

	c.connectionId = ""

	if err != nil {
		return c.avaticaErrorToResponseErrorOrError(err)
	}

	return nil
}