Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add the CloseQuery function to close the query handle? #9

@shfhp

Description

@shfhp

connection.go

func (c *Connection) Query(query string) (RowSet, error) {
bquery := beeswax.Query{}

bquery.Query = query
bquery.Configuration = []string{}

handle, err := c.client.Query(&bquery)

if err != nil {
	return nil, err
}
**c.handle = handle**

return newRowSet(c.client, handle, c.options), nil

}

*func (c Connection) CloseQuery() error {
if c.handle != nil {
c.client.CloseInsert(c.handle)
c.handle = nil
}
return nil
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions