Socket
Book a DemoInstallSign in
Socket

egg-sequelize-auto-ts

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-sequelize-auto-ts

In you eggjs project,Automatically generate bare sequelize models from your database .

1.4.0
latest
Source
npmnpm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Sequelize-Auto For Eggjs

Base on Sequelize-Auto

Support typescript option

Install

npm i egg-sequelize-auto2

you also have to install @types/sequelize in you eggjs project

npm i @types/sequelize

typescript example

In you eggjs project root

./node_modules/.bin/egg-sequelize-auto-ts -d shop -h localhost -p 3306 -u root -x 1234 --dialect mysql -o app/model -z -g shopModel

-z for typescript , -g shopModel load model at ctx.shopModel

you will get some ts file in app/model

Now you can go on with typescript

Keywords

egg

FAQs

Package last updated on 12 Sep 2019

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.