logo

Constatic

Discord Bot BasePresetsDatabases

Databases

Database guides

A database is a system that stores and organizes information in a structured manner, enabling the efficient creation, reading, updating, and deletion of this data. It is essential for managing large volumes of information, facilitating data access and manipulation for applications and users.

Using the CLI to generate your project, you can select a database preset.

The second question will ask you to choose a database preset:

npx constatic@latest
🧰 Database preset:
- πŸƒ MongoDb (mongoose)
- 🧊 QuickDB (better-sqlite3)
- πŸ¦• Firestore (typesaurus)
- πŸ”₯ Firestore (firelord)
- 🐬 MySQL (sql)
- 🦭 MariaDb (sql)
- πŸ’Ž Prisma (orm)

If you don't want any database or want to create the code from scratch just choose "none"

See below how to use each preset, conventions and best practices for each one: