https://rpackage.vercel.app/npm/docs/dbnx-mysql
A lightweight and flexible TypeScript-based database query and manipulation library. Designed to simplify database interactions with a clean and intuitive API.
- 🛠 Flexible Queries: Perform complex queries with simple methods.
- 🗃 Model Integration: Seamlessly interact with database models.
- ✏️ CRUD Operations: Create, Read, Update, and Delete records easily.
- 🔒 Type Safety: TypeScript support for strong type checking.
- ⚡ Performance: Optimized for high-speed database operations.
Install DBnx
using npm:
npm install @dbnx/mysql
Start by initializing the DBnx
instance:
import {DBnx} from '@dbnx/mysql';
const dbnx = new DBnx({
host: 'localhost',
user: 'root',
password: 'password',
database: 'your_database',
});
new DBnx(config: DBConfigType)
Parameter | Type | Description |
---|---|---|
host |
string |
Database host URL |
user |
string |
Database user |
password |
string |
Database password |
database |
string |
Name of the database |
We welcome contributions! To get started:
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature-name
. - Commit your changes:
git commit -m 'Add some feature'
. - Push to the branch:
git push origin feature/your-feature-name
. - Open a pull request.
This project is licensed under the MIT License.
Feel free to modify this template as per your specific implementation details!