Database Integration
Connect to PostgreSQL, MySQL, SQLite, MongoDB, and more. Connection pooling, migrations, and ORM integration included.
On this page
Database Integration That Just Works
Connect to any database with one line.
PostgreSQL, MySQL, SQLite, MongoDB, and more. Connection pooling included.
It's This Simple
Connect to your database
typescript
Why Database Integration Matters
Without proper database integration, you're writing connection code, managing pools, and handling errors manually. With MoroJS, you get all of that automatically.
Traditional database setup requires multiple libraries and complex configuration. We handle that automatically.
Without Adapters
- •Manual connection management
- •Complex pooling configuration
- •Different APIs for different databases
- •Manual transaction handling
With MoroJS
- •One-line database connection
- •Automatic connection pooling
- •Same API across all databases
- •Built-in transaction support
It's This Easy
Use the same API regardless of which database you choose.
Same API, different databases
typescript
Why It Makes Sense
Universal
Support for PostgreSQL, MySQL, SQLite, MongoDB, and more. Same API.
Automatic
Connection pooling, transactions, and error handling. Zero configuration.
Safe
Parameterized queries, transaction support, and connection management.
How It Works
MoroJS provides database adapters that abstract away the differences between databases. You use the same API whether you're connecting to PostgreSQL, MySQL, SQLite, or MongoDB. Connection pooling, transactions, and error handling are all handled automatically.
Quick Setup
Database Adapter Setup
typescript
Supported Databases
SQL Databases
- • PostgreSQL
- • MySQL / MariaDB
- • SQLite
- • Microsoft SQL Server
NoSQL Databases
- • MongoDB
- • Redis (caching)
- • DynamoDB
- • Cassandra
Advanced Features
Multiple Database Connections
typescript
Database Transactions
typescript
Available Adapter Methods
typescript