Database Overview
Ever Gauzy supports multiple databases and ORMs, providing flexibility for different deployment scenarios.
Supported Databasesβ
| Database | Production | Development | Default |
|---|---|---|---|
| PostgreSQL | β Recommended | β | β |
| MySQL / MariaDB | β | β | β |
| SQLite | β οΈ Demo only | β | β |
| better-sqlite3 | β οΈ Demo only | β | β |
Supported ORMsβ
| ORM | Role | Configuration |
|---|---|---|
| TypeORM | Primary ORM | DB_ORM=typeorm |
| MikroORM | Alternative ORM | DB_ORM=mikro-orm |
| Knex | Query builder | Always available |
Database Configurationβ
Core Environment Variablesβ
# Database type
DB_TYPE=postgres # postgres | mysql | sqlite | better-sqlite3
# ORM selection
DB_ORM=typeorm # typeorm | mikro-orm
# Connection settings
DB_HOST=localhost
DB_PORT=5432
DB_NAME=gauzy
DB_USER=postgres
DB_PASS=your-password
DB_SSL_MODE=false
# Connection pool
DB_POOL_SIZE=40
DB_CONNECTION_TIMEOUT=5000
DB_IDLE_TIMEOUT=10000
# Logging
DB_LOGGING=false # true | false | query | error | schema