{"name":"mysql2","version":"2.2.5","keywords":["mysql","client","server"],"author":{"name":"Andrey Sidorov","email":"sidorares@yandex.ru"},"license":"MIT","_id":"mysql2@2.2.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":"72624ffb4816f80f96b9c97fedd8c00935f9f340","tarball":"http://registry-npm.ywwl.com/mysql2/download/mysql2-2.2.5.tgz","fileCount":91,"integrity":"sha512-XRqPNxcZTpmFdXbJqb+/CtYVLCx14x1RTeNMD4954L331APu75IC74GDqnZMEt1kwaXy6TySo55rF2F3YJS78g==","signatures":[{"sig":"MEQCIEAzc7IjnbzoPKr+o8NxNjsgB2SN+m13vL+HooH4NVqFAiAixykP2c7euk+tBTGJomWuSyRWJd8hg85i4qJBX0m/WA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":461270,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaJxdCRA9TVsSAnZWagAACDMP/iDmKBD83Rmtgqshqv0L\n83zlo0RKbwPV4PwOi+P3WSPWAvj+jimQVfTf7GjPrsWHaKxALwmzGT7lF0cX\n+MolpbbBfpRSpbeUtXcGx2UqJjcRUBxwLTO+lQe9e8rNMl/i0jFx16AsUx3P\nMBhM4foQ3bt1Ny90rpQBMzY2dS70J74YHFXLD4e0NtVGDin7Q1+N1PV3HEc8\nS3jSLdR9UXpBtlYunmyyewPftQDG2wS+owM1MiYc8F2Ae9dl5d7JLTT8EWmb\nTwPKoks1MfekUX7OPLXHzby1argt201Mlv6oTmjdsaPU17uqnVy+sXqEfeYq\nDA34L+e6K02cHn2iUyY5VHOdVPxMj33E10maXX1RL/toAVnEYrJKtBrivmJg\na1CfJq66+yR/sLnq5lJUF+00iK1eZvsLW3/GEH3YePhPWNMD567siUymsoAX\nyrI9gv8eazo3fe7A7TrhU6SJUMlClv9g6fuQKRgc4THR0PMhMPo9j7rjdAa8\nBASCLNmGNGC4VrImYO023RJhDbSKiv5Vayl3CX7QFM9xl+Uboviy188nKCLn\n6NAwbDMOM4fugC6fC3zbPFU77NyyuzrhwOJo8UVVFYBaFaazVViZlKLqJO8l\nSv1FiPGAe0GRiJezX71AeFbius4AIwKO4v3Gco7/6Z0ln+1LOpNifcXnmZQZ\nLoTW\r\n=3lT2\r\n-----END PGP SIGNATURE-----\r\n","size":128969,"noattachment":false,"key":"/mysql2/-/mysql2-2.2.5.tgz"},"main":"index.js","engines":{"node":">= 8.0"},"exports":{".":"./index.js","./promise":"./promise.js"},"gitHead":"8121ea11393cdfd99613e691a3dd3675154f05d7","scripts":{"lint":"npm run lint:docs && npm run lint:code","test":"npm run lint && npm run test:raw","prettier":"prettier --single-quote --trailing-comma none --write \"{lib,examples,test}/**/*.js\"","test:raw":"node ./test/run.js","benchmark":"./benchmarks/run-unit.js","lint:code":"eslint index.js promise.js \"lib/**/*.js\" \"test/**/*.js\" \"benchmarks/**/*.js\"","lint:docs":"eslint Contributing.md \"documentation/**/*.md\" \"examples/*.js\"","precommit":"lint-staged","wait-port":"wait-on","eslint-check":"eslint --print-config .eslintrc | eslint-config-prettier-check","prettier:docs":"prettier-markdown README.md documentation/*"},"_npmUser":{"name":"sidorares","email":"sidorares@yandex.com"},"repository":{"url":"git+https://github.com/sidorares/node-mysql2.git","type":"git"},"_npmVersion":"6.12.0","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":"12.13.0","dependencies":{"long":"^4.0.0","denque":"^1.4.1","lru-cache":"^6.0.0","seq-queue":"^0.0.5","sqlstring":"^2.3.2","iconv-lite":"^0.6.2","generate-function":"^2.3.1","named-placeholders":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"urun":"0.0.8","husky":"^3.0.4","utest":"0.0.8","eslint":"^6.2.2","prettier":"^2.0.5","progress":"^2.0.3","portfinder":"^1.0.28","typescript":"^3.6.3","assert-diff":"^3.0.0","lint-staged":"^10.0.3","prettier-markdown":"^0.1.6","error-stack-parser":"^2.0.3","is-async-supported":"^1.2.0","eslint-config-prettier":"^6.1.0","eslint-plugin-markdown":"^1.0.0","@typescript-eslint/parser":"^2.3.2","eslint-plugin-async-await":"0.0.0","@typescript-eslint/eslint-plugin":"^2.3.2"},"_npmOperationalInternal":{"tmp":"tmp/mysql2_2.2.5_1600691293013_0.817170285425965","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":1600691293157,"_cnpm_publish_time":1600691293157,"dist-tags":{"beta":"2.0.0-alpha1","canary":"3.24.6-canary.8c068ef","latest":"3.24.6","next":"3.0.0-rc.1"}}