Equivalent inspectdb function on Node

Asked

Viewed 29 times

1

Hello! In Django there is a function called inspectdb that maps every database creating models of the model.py file.

Is there a function or lib equivalent javascript or Node.js?

1 answer

0

In Node.JS there is a ORM called Sequelize, it has a command called sequelize-auto, with it we can create the models from an existing database as in Django using inspectdb.

Sequelize supports multiple databases, see the documentation for the dependencies needed for your database.

Below is the documentation: https://github.com/sequelize/sequelizeauto

Browser other questions tagged

You are not signed in. Login or sign up in order to post.