You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dialect: newFor issues and PRs that relate to new dialect supportdialect: sqliteFor issues and PRs. Things that involve SQLite (and do not involve all dialects).
Reacted by Pedro Augusto de Paula Barbosa, Matyáš Racek, kentarokai, Jonatas Walker, nottdf, Manda Putra, Chan Myae San Hlaing, Brad Isbell, wesratcliff, supperchong and 77 more
Reacted by Alex Yang
Reacted by Pedro Augusto de Paula Barbosa, Matyáš Racek, Jonatas Walker, UseBaz, wesratcliff, Kait Moreno, dropbeardan and Den Voropaev
Reacted by Pedro Augusto de Paula Barbosa, Jonatas Walker, Kait Moreno, Sámal Rasmussen, dropbeardan, Den Voropaev and Omkar Phansopkar
This mean as an ORM we need to check what kind of query is going to execute (will it return data?) and switch methods based on that. I think this is unnecessary complication.
I wish they could just provide simple method to execute any arbitrary query (with parameters) like every other dialect library in existence.
So officially we want to switch but we are not working on it. If someone want to do a PR for this, we will welcome that change.
Is this still not being worked on? If the maintainers approve, I'll gladly open a fork open to the community to get this feature up and running and PR it.
After a quick scan of the source, it doesn't really seem as hard as every is making it, seems like the regular sqlite dialect can be easily modified for better-sqlite3, but I just don't have the time to scan and port everything, maybe if we make it a community effort, we can get this done
@j-refs internally this has been postponed to v8 when we split dialects. If you can make it so that users can select which of the two adapters they want to use, we can reconsider adding this to v7.
If you create a fork, please mention it here in this issue as well so we can refer people to it in the meantime
As we're opting for providing both @sequelize/sqlite3 and @sequelize/better-sqlite3, this won't be a breaking change after all
Note that @sequelize/better-sqlite3 cannot extend @sequelize/sqlite3 directly to avoid installing both sqlite3 and better-sqlite3. Instead, anything that you wish to re-use from @sequelize/sqlite3 should be moved to an internal package, @sequelize/abstract-sqlite
As we're opting for providing both @sequelize/sqlite3 and @sequelize/better-sqlite3, this won't be a breaking change after all
Note that @sequelize/better-sqlite3 cannot extend @sequelize/sqlite3 directly to avoid installing both sqlite3 and better-sqlite3. Instead, anything that you wish to re-use from @sequelize/sqlite3 should be moved to an internal package, @sequelize/abstract-sqlite
I was not able to put any effort into this sorry. I ran into some major medical issues and am kind of barely getting backaround
Reacted by Johnfrian, Andreas Linnert, Jan Simson, len and Jannik Hollenbach
Wondering if anyone is using a fork which doesnt have the TAR CVE
tar <=7.5.3
Severity: high
node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization - https://github.com/advisories/GHSA-8qq5-rm4j-mr97
Race Condition in node-tar Path Reservations via Unicode Ligature Collisions on macOS APFS - https://github.com/advisories/GHSA-r6q2-hw4h-h46w
Reacted by Hao Zhang(张浩), Shaun Hoffer, Michael van Baalen, Guillaume, johackim, Josh, Christian Farías Águila, Brad Isbell, Lorenzo Brivio and SuperSegfault
dialect: newFor issues and PRs that relate to new dialect supportdialect: sqliteFor issues and PRs. Things that involve SQLite (and do not involve all dialects).
Activity
papb commentedon Sep 7, 2019
Completely agreed!!
usebaz commentedon Oct 15, 2019
@sushantdhiman Hi, if need help I can make PR with migrate to
better-sqlite3sushantdhiman commentedon Oct 15, 2019
@usebaz Thanks. Soon
masterbranch will point to the next beta. After that you can submit your PRetylermoss commentedon May 4, 2020
Is there any update on this?
sushantdhiman commentedon May 7, 2020
@etylermoss Currently no one is working on this. I tried to convert some time ago but found that API is really annoying :)
For example,
run,(only on statements that do not return data)get(only on statements that return data)This mean as an ORM we need to check what kind of query is going to execute (will it return data?) and switch methods based on that. I think this is unnecessary complication.
I wish they could just provide simple method to execute any arbitrary
query(with parameters) like every other dialect library in existence.So officially we want to switch but we are not working on it. If someone want to do a PR for this, we will welcome that change.
louy2 commentedon May 18, 2020
How is it handled with
node-sqlite3currently? It has the same run/get split.[-]V6: Use better-sqlite3[/-][+]Use better-sqlite3[/+]16 remaining items
j-refs commentedon Jan 30, 2024
Is this still not being worked on? If the maintainers approve, I'll gladly open a fork open to the community to get this feature up and running and PR it.
After a quick scan of the source, it doesn't really seem as hard as every is making it, seems like the regular
sqlitedialect can be easily modified forbetter-sqlite3, but I just don't have the time to scan and port everything, maybe if we make it a community effort, we can get this doneWikiRik commentedon Jan 30, 2024
@j-refs internally this has been postponed to v8 when we split dialects. If you can make it so that users can select which of the two adapters they want to use, we can reconsider adding this to v7.
If you create a fork, please mention it here in this issue as well so we can refer people to it in the meantime
j-refs commentedon Jan 30, 2024
Will look into forsure. Probably later today, I work nights and I'm ready to KO. Any info the maintainers wanna add in before I form?
yisar commentedon Feb 23, 2024
any updates?
j-refs commentedon Feb 25, 2024
Yes sorry, struggling to find time to get started on this, but is definitely on my queue
j-refs commentedon Mar 4, 2024
I'm ready to start working on this. Would y'all prefer a branched PR or it's own repo?
ephys commentedon Apr 8, 2024
@j-refs So sorry, I did not see your latest message
The SQLite package has been split to its own package (https://github.com/sequelize/sequelize/tree/main/packages). You can fork the repository, create a new package called
better-sqlite3, and open a PR to this repository :)As we're opting for providing both
@sequelize/sqlite3and@sequelize/better-sqlite3, this won't be a breaking change after allNote that
@sequelize/better-sqlite3cannot extend@sequelize/sqlite3directly to avoid installing both sqlite3 and better-sqlite3. Instead, anything that you wish to re-use from@sequelize/sqlite3should be moved to an internal package,@sequelize/abstract-sqlite0xslipk commentedon Dec 19, 2024
@ephys I will start working on this. Do you guys have something already in progress that can work or help with?
j-refs commentedon Jan 8, 2025
I was not able to put any effort into this sorry. I ran into some major medical issues and am kind of barely getting backaround
Steve-Mcl commentedon Jan 27, 2026
FYI: sqlite3 now officially deprecated.
TryGhost/node-sqlite3@a85f9e8
Wondering if anyone is using a fork which doesnt have the TAR CVE
HoldYourWaffle commentedon Apr 15, 2026
Worth noting that the first-party
node:sqlitemodule moved to release candidate in Node v25.7.