pardnio/node-mysql-pool

Last updated

[!NOTE] This README was generated by SKILL, get the ZH version from here.


CHAIN YOUR MYSQL QUERIES ACROSS READ AND WRITE POOLS!

npm Downloads License


A Node.js MySQL connection pool with read-write splitting, a chainable query builder, and slow query logging

Table of Contents

Features

npm install @pardnchiu/mysql-pool · Documentation

Architecture

Full Architecture

graph TB
    App[Application] --> Init["init()"]
    Init --> Cfg[Config Resolution<br/>object / env vars]
    Cfg --> RP[(Read Pool)]
    Cfg --> WP[(Write Pool)]
    App --> QB[Chainable Query Builder]
    App --> Raw["read() / write()"]
    QB --> Exec["query() Executor<br/>slow query log"]
    Raw --> Exec
    Exec --> RP
    Exec --> WP

License

This project is licensed under the MIT LICENSE.

Author

Just open an issue to share an idea.

node-mysql-pool contributors

©️ 2025 邱敬幃 Pardn Chiu

中文