New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sequelize-mysql-ssh

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize-mysql-ssh

sequelize mysql ssh

alpha
latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
1
-75%
Maintainers
1
Weekly downloads
 
Created
Source

Description

Here's the translation of your previous message:

  • Sequelize uses cloneDeep in the configuration, which causes some stream to be unreadable.
  • After initialization, Sequelize does not provide a method to pass stream during subsequent execution.

Therefore, we made some small changes to the Sequelize source code.

Install

Using npm:

npm install sequelize-mysql-ssh

Or using yarn:

yarn add sequelize-mysql-ssh

Usage

const config = {
  host: "", //数据库远程地址
  username: "", //数据库用户名
  database: "", //数据库
  password: "", //数据库密码
  dialect: "mysql",
  ssh: {
    host: "", //远程主机地址
    port: 22, //主机端口
    username: "", //主机用户名
    password: "", //主机密码
  },
};

const sequelize = new Sequelize(config);
sequelize.query("select * from table").then((data) => {
  console.log("=====>", data);
});

MIT License

Copyright (c) 2014-present Sequelize contributors

Keywords

mysql

FAQs

Package last updated on 20 Jun 2023

Did you know?

Socket

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.

Install

Related posts