redbrick / blockbot

Discord bot maintained by the Redbrick webgroup
GNU General Public License v3.0
1 stars 8 forks source link

Add peewee for SQLite support #3

Open JedHazaymeh opened 10 months ago

JedHazaymeh commented 10 months ago

Blockbot needs support for persistent data across restarts, in order to add features for common use-cases.

Initially, a Postgres database was planned to be added as a dependency, but given the scope of the bot and the data requirement, an SQLite database was decided as a more appropriate solution.

In order to interact with the database using an object-oriented pattern, an object relational mapper (ORM) is required. For our use case, the Peewee module seems to be a suitable solution for a Python ORM.

Requirements

Resources