{"name":"mysql2","version":"1.3.2","keywords":["mysql","client","server"],"author":{"name":"Andrey Sidorov","email":"sidorares@yandex.ru"},"license":"MIT","_id":"mysql2@1.3.2","maintainers":[{"name":"iarna","email":"me@re-becca.org"},{"name":"sidorares","email":"sidorares@yandex.com"},{"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":"1bc794a36f3b3bb6a4ab6b4e7af121d08ed417c8","tarball":"http://registry-npm.ywwl.com/mysql2/download/mysql2-1.3.2.tgz","integrity":"sha512-u2dK2nHyGlEepisjW6Z7Oz/LlIvsDh2/ML6hn4z0VXjL8xfFbQh11ZiaQVW7qHpCuxE7x2dvwNQ7zdwI56Fedw==","signatures":[{"sig":"MEQCIEahGBqeLBK0h66zWz2ui3Tjv3uNpByZs5ytX/TA2XGjAiAZeLOJjfjie9aOYHvCAcnoCPLvaNVkr/UXpiE1KnZ2vg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":86884,"noattachment":false,"key":"/mysql2/-/mysql2-1.3.2.tgz"},"main":"index.js","_from":".","files":["lib","index.js","promise.js"],"_shasum":"1bc794a36f3b3bb6a4ab6b4e7af121d08ed417c8","engines":{"node":">= 4.0"},"gitHead":"73fcf549a677724349087d9f5059f1ba0d2041c6","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 && MYSQL_USE_COMPRESSION=1 node ./test/run.js","benchmark":"./benchmarks/run-unit.js","lint:code":"eslint index.js promise.js 'lib/**/*.js' 'test/**/*.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":"3.10.3","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":"6.4.0","dependencies":{"long":"^3.2.0","denque":"^1.1.1","cardinal":"1.0.0","lru-cache":"^4.0.1","seq-queue":"0.0.5","sqlstring":"^2.2.0","iconv-lite":"^0.4.17","safe-buffer":"^5.0.1","object-assign":"^4.1.1","readable-stream":"2.2.9","generate-function":"^2.0.0","named-placeholders":"1.1.1"},"devDependencies":{"urun":"0.0.8","husky":"^0.13.3","utest":"0.0.8","eslint":"^3.19.0","prettier":"^1.3.1","progress":"2.0.0","portfinder":"^1.0.10","assert-diff":"^1.2.0","lint-staged":"^3.4.2","prettier-markdown":"^0.1.6","eslint-config-prettier":"^2.1.1","eslint-plugin-markdown":"^1.0.0-beta.2","eslint-plugin-prettier":"^2.1.1","eslint-plugin-async-await":"0.0.0"},"_npmOperationalInternal":{"tmp":"tmp/mysql2-1.3.2.tgz_1496220367347_0.2208663858473301","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":1496220367633,"_cnpm_publish_time":1496220367633,"dist-tags":{"beta":"2.0.0-alpha1","canary":"3.24.6-canary.8c068ef","latest":"3.24.6","next":"3.0.0-rc.1"}}