{"name":"mysql2","version":"3.3.5","keywords":["mysql","client","server"],"author":{"name":"Andrey Sidorov","email":"andrey.sidorov@gmail.com"},"license":"MIT","_id":"mysql2@3.3.5","maintainers":[{"name":"sidorares","email":"sidorares@yandex.com"},{"name":"iarna","email":"me@re-becca.org"},{"name":"sushantdhiman","email":"sushantdhiman@outlook.com"}],"homepage":"https://github.com/sidorares/node-mysql2#readme","bugs":{"url":"https://github.com/sidorares/node-mysql2/issues"},"dist":{"shasum":"1c26f279516f3aa784f6ec9c7ec50ab0c55c6039","tarball":"http://registry-npm.ywwl.com/mysql2/download/mysql2-3.3.5.tgz","fileCount":96,"integrity":"sha512-ZTQGAzxGeaX1PyeSiZFCgQ34uiXguaEpn3aTFN9Enm9JDnbwWo+4/CJnDdQZ3n0NaMeysi8vwtW/jNUb9VqVDw==","signatures":[{"sig":"MEUCIQC/Qkl036hDK5qAwEE8trSzPWBeJhxzfroQq8Daa/vSzQIgBnRsTRhNGaZ22X4IdWhPY2NKKy8JrIjvFYX/ZreeTuc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":592410,"size":157742,"noattachment":false,"key":"/mysql2/-/mysql2-3.3.5.tgz"},"main":"index.js","engines":{"node":">= 8.0"},"exports":{".":"./index.js","./promise":"./promise.js","./promise.js":"./promise.js","./package.json":"./package.json"},"gitHead":"dc61b50cc42fdeabfb91d143822ead14d5131b8a","scripts":{"lint":"npm run lint:docs && npm run lint:code","test":"node ./test/run.js","prettier":"prettier --single-quote --trailing-comma none --write \"{lib,examples,test}/**/*.js\"","benchmark":"node ./benchmarks/benchmark.js","lint:code":"eslint index.js promise.js \"lib/**/*.js\" \"test/**/*.js\" \"benchmarks/**/*.js\"","lint:docs":"eslint Contributing.md README.md \"documentation/**/*.md\" \"examples/*.js\"","precommit":"lint-staged","type-test":"node ./node_modules/typescript/bin/tsc -p tests.json && mocha typings/test --timeout 10000","wait-port":"wait-on","eslint-check":"eslint --print-config .eslintrc | eslint-config-prettier-check","coverage-test":"c8 -r cobertura -r lcov -r text node ./test/run.js","prettier:docs":"prettier --single-quote --trailing-comma none --write README.md documentation/*","test:tsc-build":"cd \"test/tsc-build\" && npx tsc -p \"tsconfig.json\""},"typings":"typings/mysql/index","_npmUser":{"name":"sidorares","email":"sidorares@yandex.com"},"repository":{"url":"git+https://github.com/sidorares/node-mysql2.git","type":"git"},"_npmVersion":"8.19.4","description":"fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS","directories":{"example":"examples"},"lint-staged":{"*.js":["prettier --single-quote --trailing-comma none --write","git add"]},"_nodeVersion":"16.20.0","dependencies":{"long":"^5.2.1","denque":"^2.1.0","lru-cache":"^8.0.0","seq-queue":"^0.0.5","sqlstring":"^2.3.2","iconv-lite":"^0.6.3","generate-function":"^2.3.1","named-placeholders":"^1.1.3"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.10.0","chai":"^4.3.7","urun":"0.0.8","husky":"^8.0.2","mocha":"^10.0.0","utest":"0.0.8","eslint":"^8.27.0","prettier":"^2.4.1","progress":"^2.0.3","benchmark":"^2.1.4","portfinder":"^1.0.28","typescript":"^5.0.2","@types/chai":"^4.3.4","@types/node":"^20.0.0","assert-diff":"^3.0.2","lint-staged":"^13.0.3","@types/mocha":"^10.0.0","error-stack-parser":"^2.0.3","eslint-config-prettier":"^8.5.0","eslint-plugin-markdown":"^3.0.0","@typescript-eslint/parser":"^5.42.1","eslint-plugin-async-await":"0.0.0","@typescript-eslint/eslint-plugin":"^5.42.1"},"_npmOperationalInternal":{"tmp":"tmp/mysql2_3.3.5_1686619085287_0.8414020660839381","host":"s3://npm-registry-packages"},"readme":"[npm-image]: https://img.shields.io/npm/v/mysql2.svg\n[npm-url]: https://npmjs.com/package/mysql2\n[node-version-image]: https://img.shields.io/node/v/mysql2.svg\n[node-version-url]: https://nodejs.org/en/download\n[downloads-image]: https://img.shields.io/npm/dm/mysql2.svg\n[downloads-url]: https://npmjs.com/package/mysql2\n[license-url]: https://github.com/sidorares/node-mysql2/blob/master/License\n[license-image]: https://img.shields.io/npm/l/mysql2.svg?maxAge=2592000\n[node-mysql]: https://github.com/mysqljs/mysql\n[mysqljs]: https://github.com/mysqljs\n[mysql-native]: https://github.com/sidorares/nodejs-mysql-native\n[sidorares]: https://github.com/sidorares\n[TooTallNate]: https://gist.github.com/TooTallNate\n[starttls.js]: https://gist.github.com/TooTallNate/848444\n[node-mariasql]: https://github.com/mscdex/node-mariasql\n[contributors]: https://github.com/sidorares/node-mysql2/graphs/contributors\n[contributing]: https://github.com/sidorares/node-mysql2/blob/master/Contributing.md\n[docs-base]: https://sidorares.github.io/node-mysql2/docs\n[docs-base-zh-CN]: https://sidorares.github.io/node-mysql2/zh-CN/docs\n[docs-base-pt-BR]: https://sidorares.github.io/node-mysql2/pt-BR/docs\n[docs-prepared-statements]: https://sidorares.github.io/node-mysql2/docs/documentation/prepared-statements\n[docs-mysql-server]: https://sidorares.github.io/node-mysql2/docs/documentation/mysql-server\n[docs-promise-wrapper]: https://sidorares.github.io/node-mysql2/docs/documentation/promise-wrapper\n[docs-authentication-switch]: https://sidorares.github.io/node-mysql2/docs/documentation/authentication-switch\n[docs-streams]: https://sidorares.github.io/node-mysql2/docs/documentation/extras\n[docs-typescript-docs]: https://sidorares.github.io/node-mysql2/docs/documentation/typescript-examples\n[docs-qs-pooling]: https://sidorares.github.io/node-mysql2/docs#using-connection-pools\n[docs-qs-first-query]: https://sidorares.github.io/node-mysql2/docs#first-query\n[docs-qs-using-prepared-statements]: https://sidorares.github.io/node-mysql2/docs#using-prepared-statements\n[docs-examples]: https://sidorares.github.io/node-mysql2/docs/examples\n[docs-faq]: https://sidorares.github.io/node-mysql2/docs/faq\n[docs-documentation]: https://sidorares.github.io/node-mysql2/docs/documentation\n[docs-contributing]: https://sidorares.github.io/node-mysql2/docs/contributing/website\n[coverage]: https://img.shields.io/codecov/c/github/sidorares/node-mysql2\n[coverage-url]: https://app.codecov.io/github/sidorares/node-mysql2\n[ci-url]: https://github.com/sidorares/node-mysql2/actions/workflows/ci-coverage.yml?query=branch%3Amaster\n[ci-image]: https://img.shields.io/github/actions/workflow/status/sidorares/node-mysql2/ci-coverage.yml?event=push&style=flat&label=CI&branch=master\n\n# MySQL2\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![GitHub Workflow Status (with event)][ci-image]][ci-url]\n[![Codecov][coverage]][coverage-url]\n[![License][license-image]][license-url]\n\n[English][docs-base] | [简体中文][docs-base-zh-CN] | [Português (BR)][docs-base-pt-BR]\n\n> MySQL client for Node.js with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression, ssl [much more][docs-documentation].\n\n**Table of Contents**\n\n- [History and Why MySQL2](#history-and-why-mysql2)\n- [Installation](#installation)\n- [Documentation](#documentation)\n- [Acknowledgements](#acknowledgements)\n- [Contributing](#contributing)\n\n## History and Why MySQL2\n\nMySQL2 project is a continuation of [MySQL-Native][mysql-native]. Protocol parser code was rewritten from scratch and api changed to match popular [Node MySQL][node-mysql]. MySQL2 team is working together with [Node MySQL][node-mysql] team to factor out shared code and move it under [mysqljs][mysqljs] organization.\n\nMySQL2 is mostly API compatible with [Node MySQL][node-mysql] and supports majority of features. MySQL2 also offers these additional features:\n\n- Faster / Better Performance\n- [Prepared Statements][docs-prepared-statements]\n- MySQL Binary Log Protocol\n- [MySQL Server][docs-mysql-server]\n- Extended support for Encoding and Collation\n- [Promise Wrapper][docs-promise-wrapper]\n- Compression\n- SSL and [Authentication Switch][docs-authentication-switch]\n- [Custom Streams][docs-streams]\n- [Pooling][docs-qs-pooling]\n\n## Installation\n\nMySQL2 is free from native bindings and can be installed on Linux, Mac OS or Windows without any issues.\n\n```bash\nnpm install --save mysql2\n```\n\nIf you are using TypeScript, you will need to install `@types/node`.\n\n```bash\nnpm install --save-dev @types/node\n```\n\n> For TypeScript documentation and examples, see [here][docs-typescript-docs].\n\n## Documentation\n\n- [Quickstart][docs-base]\n  - [First Query][docs-qs-first-query], [Using Prepared Statements][docs-qs-using-prepared-statements], [Using Connection Pools][docs-qs-pooling] and more.\n- [Documentation][docs-documentation]\n- [Examples][docs-examples]\n- [FAQ][docs-faq]\n\n## Acknowledgements\n\n- Internal protocol is written by [@sidorares][sidorares] [MySQL-Native][mysql-native].\n- Constants, SQL parameters interpolation, Pooling, `ConnectionConfig` class taken from [Node MySQL][node-mysql].\n- SSL upgrade code based on [@TooTallNate][TooTallNate] [code][starttls.js].\n- Secure connection / compressed connection api flags compatible to [MariaSQL][node-mariasql] client.\n- [Contributors][contributors].\n\n## Contributing\n\nWant to improve something in **MySQL2**?\nPlease check [Contributing.md][contributing] for detailed instruction on how to get started.\n\nTo contribute in **MySQL2 Documentation**, please visit the [Website Contributing Guidelines][docs-contributing] for detailed instruction on how to get started.\n","publish_time":1686619085540,"_cnpm_publish_time":1686619085540,"dist-tags":{"beta":"2.0.0-alpha1","canary":"3.24.6-canary.8c068ef","latest":"3.24.6","next":"3.0.0-rc.1"}}