sidorares/node-mysql2
Fork: 626 Star: 4097 (更新于 2024-12-05 03:15:07)
license: MIT
Language: JavaScript .
:zap: fast mysqljs/mysql compatible mysql driver for node.js
最后发布版本: v3.11.3 ( 2024-09-16 06:41:26)
MySQL2
English | 简体中文 | Português (BR)
MySQL client for Node.js with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression, ssl much more.
Table of Contents
History and Why MySQL2
MySQL2 project is a continuation of MySQL-Native. Protocol parser code was rewritten from scratch and api changed to match popular Node MySQL. MySQL2 team is working together with Node MySQL team to factor out shared code and move it under mysqljs organization.
MySQL2 is mostly API compatible with Node MySQL and supports majority of features. MySQL2 also offers these additional features:
- Faster / Better Performance
- Prepared Statements
- MySQL Binary Log Protocol
- MySQL Server
- Extended support for Encoding and Collation
- Promise Wrapper
- Compression
- SSL and Authentication Switch
- Custom Streams
- Pooling
Installation
MySQL2 is free from native bindings and can be installed on Linux, Mac OS or Windows without any issues.
npm install --save mysql2
If you are using TypeScript, you will need to install @types/node
.
npm install --save-dev @types/node
For TypeScript documentation and examples, see here.
Documentation
Acknowledgements
- Internal protocol is written by @sidorares MySQL-Native.
- Constants, SQL parameters interpolation, Pooling,
ConnectionConfig
class taken from Node MySQL. - SSL upgrade code based on @TooTallNate code.
- Secure connection / compressed connection api flags compatible to MariaSQL client.
- Contributors.
Contributing
Want to improve something in MySQL2? Please check Contributing.md for detailed instruction on how to get started.
To contribute in MySQL2 Documentation, please visit the Website Contributing Guidelines for detailed instruction on how to get started.
最近版本更新:(数据更新于 2024-09-23 07:01:08)
2024-09-16 06:41:26 v3.11.3
2024-09-11 11:36:12 v3.11.2
2024-09-10 17:54:13 v3.11.1
2024-07-27 22:30:50 v3.11.0
2024-07-16 06:41:50 v3.10.3
2024-07-01 09:13:09 v3.10.2
2024-06-14 06:52:33 v3.10.1
2024-05-31 03:04:05 v3.10.0
2024-05-29 22:29:21 v3.9.9
2024-05-27 07:53:01 v3.9.8
主题(topics):
database-adapter, mysql, mysql-client, node-js
sidorares/node-mysql2同语言 JavaScript最近更新仓库
2024-12-21 12:14:02 layui/layui
2024-12-21 08:27:48 gethomepage/homepage
2024-12-21 03:44:01 emberjs/ember.js
2024-12-20 02:57:09 nodejs/node
2024-12-19 17:54:54 MHSanaei/3x-ui
2024-12-14 02:13:44 bigskysoftware/htmx