Repository navigation
MongoDB-to-SQL Adapter API v1.0.0 🚀
🌟 Features
- MongoDB Data API Compatibility: Replace MongoDB Data API with a SQL backend.
- Database Agnostic: Works with PostgreSQL, MySQL, SQLite, and Cloudflare D1.
- Scalable: Designed for serverless environments like Cloudflare Workers.
- Easy to Use: Simple and consistent API endpoints for CRUD operations.
🛠️ Supported Endpoints
| Endpoint | Description |
|---|---|
POST /find |
Fetch multiple documents. |
POST /findOne |
Fetch a single document. |
POST /insertOne |
Insert a single document. |
POST /insertMany |
Insert multiple documents. |
POST /updateOne |
Update a single document. |
POST /updateMany |
Update multiple documents. |
POST /deleteOne |
Delete a single document. |
POST /deleteMany |
Delete multiple documents. |
POST /aggregate |
Perform aggregation operations. |
🚀 Why Use This Project?
- Replace MongoDB Data API: Keep existing client code while switching to a SQL backend.
- Database Agnostic: Works with any SQL database.
- Scalable and Serverless: Optimized for Cloudflare Workers and Hono.
📦 Installation
- Clone the repository:
git clone https://github.com/Vgshots/mongodb-to-sql-adapter-api.git cd mongodb-to-sql-adapter-api - Install dependencies:
npm install
- Deploy to Cloudflare Workers:
wrangler deploy
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.