如何获取 mysqlx npm 包?

How to get mysqlx npm package?

我想使用 MySQL 文档存储。为此,我已经完成了 MySQL documentation. As per documentation, I need to use 'mysqlx' npm package. But when I searched for 'mysqlx' package on npm website. I got '@mysql/xdevapi' 包。我很困惑我应该为 MySQL 文档存储使用哪个 npm 包。

请多多指教。

Changes in MySQL Connector/Node.js 1.0.4 (2016-10-10, Milestone 3):

  • Changed package name from mysqlx to @mysql/xdevapi

  • 在我们的应用程序文件夹中复制 MySQL Connector/Node.js tar.gz 文件。
  • 复制完成后,运行以下命令将包添加到我们的应用程序中:

    $ npm install mysql-connector-nodejs-1.0.5.tar.gz
    

来自 MySQL Connector/Node.js::README.md:

Installation
------------
This library is organized in a way that it can be installed using Node.js's npm
tool into your project:
  `npm install mysql-connector-nodejs-1.0.5.tar.gz`
or diectly from npmjs.com:
  `npm install @mysql/xdevapi`
Please refer to http://npmjs.com for more information on npm.