awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
mysqljs avatar

mysqljs/mysql

0
View on GitHub↗
18,623 stars·2,515 forks·JavaScript·MIT·29 views

Mysql

This project is a MySQL database driver and client for Node.js. It provides a JavaScript implementation of the MySQL protocol to facilitate connecting to, querying, and managing data within MySQL databases.

The driver includes a connection pool manager to maintain a cache of reusable database connections, reducing the overhead of frequent network handshakes. It also supports row-by-row result streaming to process large datasets without loading entire result sets into memory.

Core capabilities cover SQL query execution, the management of database transactions, and the coordination of multiple database hosts. The project includes tools for SQL injection prevention through the sanitization of query inputs and the escaping of identifiers and values. Additionally, it handles data type casting between the database and JavaScript and provides utilities for server monitoring, such as heartbeat pings and statistics retrieval.

Features

  • MySQL Connectors - Provides a specialized driver to establish network connections to MySQL servers.
  • Node.js Database Integration - Provides a full JavaScript implementation of the MySQL protocol for Node.js applications.
  • Connection Establishment - Opens communication channels to database servers using host and credential details.
  • Connection Pools - Implements a connection pool manager to maintain a cache of reusable database connections.
  • Connection Pool Managers - Maintains a cache of reusable connections to reduce the overhead of frequent network handshakes.
  • SQL Query Execution - Sends SQL statements to the database and processes results through callbacks or options.
  • Database Connections - Manages the lifecycle of database connections, including graceful shutdown and destruction.
  • Database Transactions - Wraps multiple commands in atomic transactions using begin, commit, and rollback functions.
  • Binary Protocol Implementations - Implements the binary MySQL communication protocol using native Node.js buffers and sockets.
  • Result Streaming - Processes database packets as a stream to handle large result sets without memory exhaustion.
  • SQL Query Interfaces - Provides an interface for executing raw SQL commands and processing results via callbacks or streaming.
  • Socket Networking - Handles asynchronous request and response cycles by reading and writing raw binary packets over TCP sockets.
  • SQL Injection Prevention - Secures database queries against SQL injection through input sanitization and identifier escaping.
  • Data Type Casting - Provides a configurable transformation layer to map MySQL binary data types to JavaScript objects.
  • Database Host Distribution - Distributes connection requests across multiple database hosts using strategies like Round-Robin or Random.
  • Connection and Session Management - Tracks active session and thread identity on a per-socket basis to manage user switching and transaction scopes.
  • Database Drivers - MySQL client for Node.js.
  • Databases - MySQL client for Node.js.
  • Database Connectors - Implements the MySQL protocol for Node.js.

Star history

Star history chart for mysqljs/mysqlStar history chart for mysqljs/mysql

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Mysql

These projects share indexed features with Mysql. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • brianc/node-postgresbrianc avatar

    brianc/node-postgres

    13,155View on GitHub↗

    This project is a Node.js client for PostgreSQL databases, providing a protocol parser to translate raw binary streams into JavaScript objects. It serves as a driver for executing queries, managing data, and integrating Node.js applications with PostgreSQL backends. The library includes a connection pool manager to reduce network overhead by caching reusable connections and a result streamer that uses cursors to retrieve large datasets incrementally. It also functions as an event listener for subscribing to asynchronous server-side notifications to trigger real-time application events. Broad

    JavaScriptlibpqnode-postgrespostgres
    View on GitHub↗13,155
  • felixge/node-mysqlfelixge avatar

    felixge/node-mysql

    18,621View on GitHub↗

    This project is a pure JavaScript database driver for Node.js that implements the native MySQL binary protocol. It serves as a comprehensive connector for managing persistent network links to MySQL servers, enabling applications to execute queries, manage transactions, and handle complex data operations without requiring external middleware. The driver distinguishes itself through its integrated support for connection pooling and distributed database routing. It maintains managed sets of reusable network sockets to optimize resource usage under high request volumes, while simultaneously provi

    JavaScript
    View on GitHub↗18,621
  • sidorares/node-mysql2sidorares avatar

    sidorares/node-mysql2

    4,369View on GitHub↗

    This project is a MySQL database driver for Node.js that establishes network connections and executes SQL queries using a native communication protocol. It functions as an asynchronous SQL client, providing a promise-based query interface and support for async/await patterns to manage non-blocking database operations. The library includes a full MySQL protocol implementation, serving as a toolkit for building custom database servers, proxies, or clients. It also operates as a connection pool manager and an injection prevention tool, utilizing prepared statements and parameterized queries to s

    TypeScript
    View on GitHub↗4,369
  • lib/pqlib avatar

    lib/pq

    9,903View on GitHub↗

    pq is a PostgreSQL driver for Go that implements the standard database/sql interface. It serves as a connection library and protocol implementation that translates application data types into the binary and text formats required by PostgreSQL. The project provides specialized utilities for high-performance data ingestion using bulk data loading and a dedicated bulk data importer. It also features an implementation for listening to asynchronous server notifications and provides tools for connection load balancing across multiple hosts and ports. The driver covers a broad surface of database i

    Go
    View on GitHub↗9,903
Compare all 30 related projects→

Frequently asked questions

What does mysqljs/mysql do?

This project is a MySQL database driver and client for Node.js. It provides a JavaScript implementation of the MySQL protocol to facilitate connecting to, querying, and managing data within MySQL databases.

What are the main features of mysqljs/mysql?

The main features of mysqljs/mysql are: MySQL Connectors, Node.js Database Integration, Connection Establishment, Connection Pools, Connection Pool Managers, SQL Query Execution, Database Connections, Database Transactions.

Which projects share features with mysqljs/mysql?

Projects with overlapping indexed features include: brianc/node-postgres — This project is a Node.js client for PostgreSQL databases, providing a protocol parser to translate raw binary streams… felixge/node-mysql — This project is a pure JavaScript database driver for Node.js that implements the native MySQL binary protocol. It… sidorares/node-mysql2 — This project is a MySQL database driver for Node.js that establishes network connections and executes SQL queries… lib/pq — pq is a PostgreSQL driver for Go that implements the standard database/sql interface. It serves as a connection… magicstack/asyncpg — asyncpg is an asynchronous database driver and binary protocol client for PostgreSQL. It provides a non-blocking… jeremyevans/sequel — Sequel is a relational database toolkit for Ruby that provides object-relational mapping, a fluent SQL query builder,…