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 better-sqlite3 dialect as alternative to @vscode/sqlite3 #12559

Closed
wants to merge 2 commits into from

Conversation

derrickmehaffy
Copy link
Member

@derrickmehaffy derrickmehaffy commented Feb 16, 2022

Requires this PR to be merged first: #12557

Since the status of Mapbox's node-sqlite3 is a bit up in the air and Knex removed support for it (swapped for @vscode/sqlite3). Knex did add support for better-sqlite3 which has been a very stable replacement for both.

References:


I do not plan to add these as choices for users to pick from when creating new projects as these should be considered unstable. If all goes well in testing maybe in Strapi v5 we can depreciate the sqlite client and dialect and only use better-sqlite3 but we will need to validate this as it could be a breaking change if APIs change.


To-Do:

  • add tests

Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
@derrickmehaffy derrickmehaffy added issue: enhancement Issue suggesting an enhancement to an existing feature source: core:database Source is core/database package labels Feb 16, 2022
@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #12559 (c174d54) into master (81934f5) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head c174d54 differs from pull request most recent head 6a7d039. Consider uploading reports for the commit 6a7d039 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12559      +/-   ##
==========================================
- Coverage   47.59%   47.58%   -0.01%     
==========================================
  Files         210      210              
  Lines        8192     8193       +1     
  Branches     1857     1858       +1     
==========================================
  Hits         3899     3899              
- Misses       3531     3532       +1     
  Partials      762      762              
Flag Coverage Δ
front ?
unit 47.58% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/core/database/lib/dialects/index.js 16.66% <0.00%> (-0.99%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 81934f5...6a7d039. Read the comment docs.

@alexandrebodin alexandrebodin added pr: enhancement This PR adds or updates some part of the codebase or features and removed issue: enhancement Issue suggesting an enhancement to an existing feature labels Mar 2, 2022
@derrickmehaffy
Copy link
Member Author

Closing and merging this into #12557

@alexandrebodin alexandrebodin deleted the feature/dbd-better-sqlite3 branch June 30, 2022 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: enhancement This PR adds or updates some part of the codebase or features source: core:database Source is core/database package
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants