Skip to content

feat(mysql): Update to SDK V4#11775

Merged
yevgenypats merged 4 commits intomainfrom
feat/mysql_sdkv4
Jul 2, 2023
Merged

feat(mysql): Update to SDK V4#11775
yevgenypats merged 4 commits intomainfrom
feat/mysql_sdkv4

Conversation

@yevgenypats
Copy link
Contributor

@yevgenypats yevgenypats commented Jun 26, 2023

Still WIP

@yevgenypats yevgenypats requested review from a team and candiduslynx and removed request for a team June 26, 2023 20:56
@cq-bot cq-bot added the mysql label Jun 26, 2023
}

func (c *Client) Close(ctx context.Context) error {
return c.db.Close()
Copy link
Member

@disq disq Jun 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return c.db.Close()
if err := c.writer.Close(ctx); err != nil {
_ = c.db.Close()
return err
}
return c.db.Close()

Copy link
Contributor

@candiduslynx candiduslynx Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we still need to add _ = c.db.Close() before return err, though
UPD: added to the suggestion above

@yevgenypats yevgenypats merged commit 1e5da72 into main Jul 2, 2023
@yevgenypats yevgenypats deleted the feat/mysql_sdkv4 branch July 2, 2023 11:10
kodiakhq bot pushed a commit that referenced this pull request Jul 3, 2023
🤖 I have created a release *beep* *boop*
---


## [2.3.0](plugins-destination-mysql-v2.2.2...plugins-destination-mysql-v2.3.0) (2023-07-03)


### Features

* **mysql:** Update to SDK V4 ([#11775](#11775)) ([1e5da72](1e5da72))


### Bug Fixes

* Close writers ([#11887](#11887)) ([26fad6c](26fad6c))
* **deps:** Update github.com/apache/arrow/go/v13 digest to 5a06b2e ([#11857](#11857)) ([43c2f5f](43c2f5f))
* **deps:** Update github.com/cloudquery/arrow/go/v13 digest to df3b664 ([#11882](#11882)) ([9635b22](9635b22))
* **deps:** Update module github.com/cloudquery/plugin-pb-go to v1.5.0 ([#11850](#11850)) ([3255857](3255857))
* **mysql:** Fix main serve function ([#11873](#11873)) ([181c467](181c467))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate plugins/destination/mysql to github.com/cloudquery/plugin-sdk/v4

4 participants