1.0.32 • Published 6 months ago

@dbnx/mysql v1.0.32

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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:

  1. Fork the repository.
  2. Create a new branch: git checkout -b feature/your-feature-name.
  3. Commit your changes: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin feature/your-feature-name.
  5. 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!

1.0.32

6 months ago

1.0.31

7 months ago

1.0.30

8 months ago

1.0.29

8 months ago

1.0.28

8 months ago

1.0.27

8 months ago

1.0.26

8 months ago

1.0.25

11 months ago

1.0.24

11 months ago

1.0.23

12 months ago

1.0.22

12 months ago

1.0.21

12 months ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.1-2.1

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.31-beta

1 year ago

1.0.3-beta

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago