Database Adapters
MoroJS uses a database adapter pattern instead of ORMs. Adapters provide a unified interface for different databases with built-in connection pooling and type safety.
Available Database Adapters
PostgreSQL
Advanced relational database with full SQL support
MySQL
Popular relational database with connection pooling
SQLite
Lightweight database perfect for development
Using Database Adapters
Basic Adapter Setup
typescript
Adapter Methods
Available Methods
typescript
Multiple Database Adapters
Using Multiple Databases
typescript
Adapter Comparison
Feature | PostgreSQL | MySQL | SQLite |
---|---|---|---|
Performance | Excellent | Excellent | Good |
Concurrency | Excellent | Good | Limited |
Setup Complexity | Medium | Medium | Simple |
Use Case | Production | Production | Development |
Connection Pooling | Built-in | Built-in | N/A |