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

feat(sql): use joined strategy as default for SQL drivers #4958

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

B4nan
Copy link
Member

@B4nan B4nan commented Nov 25, 2023

This builds on the foundation of #4957, which resolved the biggest difference of the strategies. As part of the switch, few other smaller bugs were also fixed, as most of the test suite is now using the joined strategy too, so it uncovered some bugs that were fixed only with the select-in.

To keep the old behaviour, you can override the default loading strategy in your ORM config.

Copy link

codecov bot commented Nov 25, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (734160e) 99.48% compared to head (90d090d) 99.48%.

Files Patch % Lines
packages/knex/src/AbstractSqlDriver.ts 97.43% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4958   +/-   ##
=======================================
  Coverage   99.48%   99.48%           
=======================================
  Files         222      222           
  Lines       16156    16179   +23     
  Branches     3884     3893    +9     
=======================================
+ Hits        16073    16096   +23     
  Misses         82       82           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This builds on the foundation of #4957, which resolved the biggest difference of the strategies.
As part of the switch, few other smaller bugs were also fixed, as most of the test suite is now
using the joined strategy too, so it uncovered some bugs that were fixed only with the select-in.

To keep the old behaviour, you can override the default loading strategy in your ORM config.
@B4nan B4nan merged commit 90ec766 into master Nov 25, 2023
10 of 11 checks passed
@B4nan B4nan deleted the joined-strategy-default branch November 25, 2023 21:19
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.

None yet

1 participant