You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@dbnx/mysql

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbnx/mysql

A powerful and enhanced ORM library for MySQL, offering query execution, model creation, and full relational management.

1.0.33
latest
Source
npmnpm
Version published
Weekly downloads
5
-92.31%
Maintainers
1
Weekly downloads
 
Created
Source

DBnx/mysql

https://dbnx-mysql.vercel.app

A lightweight and flexible TypeScript-based database query and manipulation library. Designed to simplify database interactions with a clean and intuitive API.

Pre-require

Install mysql2

npm i mysql2

Features

  • 🛠 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.

Installation

Install DBnx using npm:

npm install @dbnx/mysql

Usage

1. Initialize DBnx

Start by initializing the DBnx instance:

import { DBnx } from "@dbnx/mysql";

const dbnx = new DBnx({
  host: "localhost",
  user: "root",
  password: "password",
  database: "your_database",
}).connect();

API Reference

DBnx Initialization

new DBnx(config: DBConfigType)
ParameterTypeDescription
hoststringDatabase host URL
userstringDatabase user
passwordstringDatabase password
databasestringName of the database

Contributing

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.

License

This project is licensed under the MIT License.

Feel free to modify this template as per your specific implementation details!

Keywords

mysql

FAQs

Package last updated on 13 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts