discordjs / guide

The official guide for discord.js, created and maintained by core members of its community.
https://discordjs.guide
MIT License
1.57k stars 2.3k forks source link

FAQ Update Request Sequelize Section #1031

Closed sirlupusdev closed 2 years ago

sirlupusdev commented 2 years ago

FAQ Change Request

Is your feature request related to a problem? Please describe.

In some way, I request this due to incompatibility. Currently, you can only use SQLite3 when you have a Node JS Version of 14 or below. Discord.JS needs 16 or higher, which makes them incompatible.

Describe the solution you'd like

I would like to see the Sequelize section (and eventually ff.) updated as you cannot use Sequelize with SQLite3 and Discord JS anymore, which is why this guide is outdated. You cannot use better-sqlite3 either as Sequelize does not recognize that package. It would be nice if you could feature a soloution that still uses an ORM and SQLite, but I cannot think of any possibility to do that as of now.

Describe alternatives you've considered

Alternatives are:

  1. Archive this completely, which I don't want to see (I wanted to follow that guide to understand database processes, that's why I am making this request). The article itself is very detailed and I understand almost everything in the guide, which is why I want to have an updated version.
  2. Use another storage method to describe, which would be more complicated (like MySQL)
  3. Don't use an ORM, which I could think of as a possible option, but it's the same as above, more complicated

Additional notes

Full link to article: https://discordjs.guide/sequelize/ Proof that SQLite needs NodeJS V14 or below: https://www.npmjs.com/package/sqlite3 Proof that DiscordJS need NodeJS V16 or above: https://www.npmjs.com/package/discord.js

If you need more information or clarification, please let me know. There is also a small chance that I am missing something, if so please tell me, as I am an fairly unexperienced coder as of now.

sirlupusdev commented 2 years ago

This can be closed, SQLite 3 has been updated to work with a later version of NodeJS.