1.0.32 • Published 5 months ago

@dbnx/mysql v1.0.32

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 months ago

1.0.31

5 months ago

1.0.30

6 months ago

1.0.29

6 months ago

1.0.28

7 months ago

1.0.27

7 months ago

1.0.26

7 months ago

1.0.25

9 months ago

1.0.24

10 months ago

1.0.23

10 months ago

1.0.22

10 months ago

1.0.21

10 months ago

1.0.20

10 months ago

1.0.19

10 months ago

1.0.18

11 months ago

1.0.17

11 months ago

1.0.16

11 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.1-2.1

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.31-beta

11 months ago

1.0.3-beta

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago