1.0.0 • Published 3 years ago

pg-generator-example v1.0.0

Weekly downloads
44
License
MIT
Repository
github
Last release
3 years ago

pg-generator-example

Example plugin for pg-generator, that creates model files for several ORMs and other purposes.

Installation

npm install pg-generator-example

Synopsis

$ pgen example --out-dir models --clear --relation-name-functions optimal"
$ pgen example:sequelize6 --out-dir models --clear --relation-name-functions optimal"
$ pgen example:objection2 --out-dir models --clear --relation-name-functions optimal"
$ pgen example:schwifty5 --out-dir models --clear --relation-name-functions optimal"
$ pgen example:md --out-dir db-docs --clear --relation-name-functions optimal"

Details

This is a pg-generator plugin to provide example generators and templates for tutorial purposes. Use it via pg-generator.

Available Examples

As indicated following generators are just examples to help you to build yours. Besides personal opinions, every ORM requires careful practices. As a result, we can't maintain ORM codes we are not using. Therefore, see them as a good effort. Even they are not guaranteed to work with current versions of the respective ORM library.

NameDescription
appExample of composability.
mdExample of how to create database documentation in markdown.
objection2Example of model files for objection ORM.
reportExample of a simple report of the database.
schwiftyExample of model files for schwifty ORM.
sequelize6Example of model files for sequelize ORM.
tutorialExample of how to create your generators.