Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
mysqlx
Advanced tools
Readme
:warning: DEPRECATED :warning:
The official MySQL Connector for NodeJS has already been written in TypeScript for a while now, so this wrapper is not required anymore.
Typed MySQL X Dev API (mysqlx) is a staticly typed wrapper for the official MySQL Connector for NodeJS using the X Protocol.
This library is available through package manager (npm and yarn). Use package manager to add this library to your project.
# If you're using NPM
npm install --save mysqlx
# If you're using Yarn
yarn add mysqlx
Then, imports mysqlx in your project.
var mysqlx = require("mysqlx");
// Or using ES6 imports
import mysqlx from "mysqlx";
Because mysqlx is static type wrapper over the official MySQL Connector/Node.js library, the documentation follows the official documentation of MySQL NodeJS Connector, with some exception listed below.
These changes implements new way to expose execution results. As for example how the new way works, see this example.
const docs = [];
await collection.find()
.execute(doc => docs.push(doc));
console.log(docs);
Code above is using data cursors to collect execution results, as stated in the official documentation. With this library, you should instead using this code below.
const result = await collection.find()
.execute();
const docs = result.getDocuments();
console.log(docs);
Written in TypeScript, built into ECMAScript 3 using the TypeScript compiler.
To contribute, fork this project, and issue a pull request. Always follows the documentation for implementation guidelines.
We use SemVer for version management. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
FAQs
Staticly typed MySQL Connector for NodeJS using the X Protocol.
The npm package mysqlx receives a total of 21 weekly downloads. As such, mysqlx popularity was classified as not popular.
We found that mysqlx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.