barthofu / tscord

🤖 A fully-featured discord bot template written in Typescript, intended to provide a framework that's easy to use, extend and modify
https://tscord.discbot.app
MIT License
263 stars 21 forks source link

[Feature] Add support for `mongodb` database #16

Closed barthofu closed 1 year ago

barthofu commented 2 years ago

Feature?

And more generaly for NoSQL databases. We could also think to Redis, etc.

barthofu commented 2 years ago

N.B: this branch will be in stand by till we know how to implement it in the CLI template generate (create-tscord-bot) It will also be useful for the writing of the documentation.

ElMehdiBouamama commented 1 year ago

You probably don't need to implement a NOSQL database because the currently implemented database supports the EAV pattern which allows to store key/value pairs just like you would do in a NOSQL database.

Documentation about the currently available EAV pattern from discordx bellow: https://barthofu.github.io/tscord-docs/docs/bot/features/database/single-data-type