Module: lib/index

lib/index

require("lib/index")(callback, options)

Generates model files for Sequelize ORM.

Parameters:
Name Type Description
callback function

Function to execute after completion of auto generation. callback(err)

options object

Options to override configuration parameters from config file

Properties
Name Type Description
host string

IP address or host name of the database server

port number

Port of database server to connect

database string

Database name

user string

Username to connect to database

password string

Password to connect to database

schema Array

List of comma separated names of the database schemas to traverse. Example public,extra_schema.

output string

Output folder

config string

Path of the configuration file

nolog boolean

Don't output log of generated files.

resetConfig boolean

Reset configuration via side-step solution to prevent singleton behaviour. (Not recomended for production)

Source:
Author:
  • Özüm Eldoğan
Source:
sequelize-pg-generator Copyright © 2014 Özüm Eldoğan.
Documentation generated by JSDoc 3.3.1 on Thu Sep 10th 2015 using the DocStrap template.