Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
egg-real-mysql
Advanced tools
this plugin based on promise-mysql package, and promise-mysql based on node-mysql, so you can simply use it
egg-real-mysql version | egg 2.x |
---|---|
2.x | 😁 |
1.x | ❓ |
0.x | ❌ |
$ npm i egg-real-mysql --save
// {app_root}/config/plugin.js
exports.realMysql = {
enable: true,
package: 'egg-real-mysql',
};
// {app_root}/config/config.default.js
exports.mysql = {
client: {
host: '127.0.0.1',
port: '3306',
user: 'root',
password: 'root',
database: 'example',
},
app: true,
agent: false,
};
see config/config.default.js for more detail.
module.exports = app => {
return class extends app.Service {
async create(name) {
let data = {
id: '',
name: name
};
const result = await this.app.mysql.query('insert into list set ?', [ data ]).then(rows => {
return JSON.parse(JSON.stringify(rows));
});
return result;
}
};
};
Please open an issue
FAQs
based on node mysql and promise-mysql
The npm package egg-real-mysql receives a total of 0 weekly downloads. As such, egg-real-mysql popularity was classified as not popular.
We found that egg-real-mysql 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.