1.0.32 • Published 1 year ago

@dbnx/mysql v1.0.32

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

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.1-2.1

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.31-beta

2 years ago

1.0.3-beta

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago