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

tech(quaint): surface mysql socket as host if in use #4917

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

Druue
Copy link
Contributor

@Druue Druue commented Jun 12, 2024

Updated MySQL url parsing to surface the socket as host if in use, mirroring what we expect in PG and CRDB.

This means that errors will now surface the socket connection to users when encountering, for example, connectivity issues.

This was already happening by default for PG and CRDB as they expect sockets through the host query-arg, however our default host parsing was not picking this up for MySQL as it was expected through socket there instead.

Related PR: prisma/prisma#24222

…rroring what we expect in PG and CRDB.

This means that errors will now surface the socket connection to users when encountering, for example, connectivity issues.

This was already happening by default for PG and CRDB as they expect sockets through the `host` query-arg, however our default host parsing was not picking this up for MySQL as it was expected through `socket` there instead.

Related PR: prisma/prisma#24222
@Druue Druue added the PR: Improvement A PR that improves existing functionality label Jun 12, 2024
@Druue Druue added this to the 5.16.0 milestone Jun 12, 2024
@Druue Druue self-assigned this Jun 12, 2024
@Druue Druue requested a review from a team as a code owner June 12, 2024 11:40
@Druue Druue requested review from Weakky and removed request for a team June 12, 2024 11:40
Copy link

codspeed-hq bot commented Jun 12, 2024

CodSpeed Performance Report

Merging #4917 will not alter performance

Comparing fix/mysql-surface_socket_in_errors (0b55f0f) with main (6f3b8db)

Summary

✅ 11 untouched benchmarks

Copy link
Contributor

WASM Query Engine file Size

Engine This PR Base branch Diff
Postgres 2.043MiB 2.043MiB 0.000B
Postgres (gzip) 813.867KiB 813.867KiB 0.000B
Mysql 2.013MiB 2.013MiB 0.000B
Mysql (gzip) 800.250KiB 800.250KiB 0.000B
Sqlite 1.914MiB 1.914MiB 0.000B
Sqlite (gzip) 762.105KiB 762.106KiB -1.000B

@Druue Druue merged commit 03f1367 into main Jun 12, 2024
208 checks passed
@Druue Druue deleted the fix/mysql-surface_socket_in_errors branch June 12, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Improvement A PR that improves existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants