Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UpdateResult.numChangedRows #431

Merged
merged 18 commits into from
Jul 5, 2023
Merged

Conversation

wirekang
Copy link
Contributor

MySQL-only feature, changedRows is returned from node-mysql2

There are some non-related file changes because some files in master branch does not prettified well.

Closes #428

@vercel
Copy link

vercel bot commented Apr 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kysely ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 5, 2023 9:44am

@wirekang wirekang changed the title [WIP] Add UpdateResult.numChangedRows Add UpdateResult.numChangedRows Apr 19, 2023
Copy link
Member

@koskimas koskimas left a comment

Choose a reason for hiding this comment

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

Thank you! Some comments, then this is good to go.

src/dialect/database-introspector.ts Outdated Show resolved Hide resolved
src/query-builder/update-query-builder.ts Outdated Show resolved Hide resolved
src/query-builder/update-result.ts Outdated Show resolved Hide resolved
src/query-builder/update-result.ts Outdated Show resolved Hide resolved
src/query-builder/update-result.ts Outdated Show resolved Hide resolved
src/util/type-utils.ts Outdated Show resolved Hide resolved
src/driver/database-connection.ts Show resolved Hide resolved
src/driver/database-connection.ts Show resolved Hide resolved
src/query-builder/update-result.ts Outdated Show resolved Hide resolved
wirekang

This comment was marked as off-topic.

@igalklebanov igalklebanov added enhancement New feature or request mysql Related to MySQL api Related to library's API labels Apr 21, 2023
@wirekang
Copy link
Contributor Author

@koskimas

I updated codes to fit with master branch. Changes simplified due to f171a90

Copy link
Member

@igalklebanov igalklebanov left a comment

Choose a reason for hiding this comment

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

Went over @koskimas' comments, and changes made in response. Looks good to go on my end.

@koskimas koskimas merged commit a381157 into kysely-org:master Jul 5, 2023
5 checks passed
Gaspero pushed a commit to Gaspero/kysely that referenced this pull request Oct 2, 2023
* add numChangedRows

* add tests for numChangedRows

* reformat

* refactor

* fix typo

* rename util function

* update comments

* rename Type to Constructor

* make numChangedRows optional

* fix test

* update comments

* remove Constructor type

* fix type

---------

Co-authored-by: Igal Klebanov <igalklebanov@gmail.com>
Co-authored-by: Sami Koskimäki <koskomi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to library's API enhancement New feature or request mysql Related to MySQL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update result only returning number of updated rows
3 participants