0.1.2 • Published 7 months ago

toeg v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Features

Generates entities for TypeORM from a databases. Supports PostgreSQL engine only, but can be extend using Abstract driver. Inspired by https://github.com/Kononnable/typeorm-model-generator (unfortunately not supported anymore). The fork was created to add two main features: skip indices and relations generation.

Usage

  1. Add toeg to your project
npm i -D toeg
  1. Then create a configuration file .toeg.json using .toeg-example.json as a base.

  2. And finally run toeg:

node_modules/.bin/toeg

The generated entity models aren't formatted well, so it's recommended to run prettify and eslint on generated modules:

prettier --write --loglevel error \"output/*.ts\" && eslint \"output/*.ts\" --fix --quiet

Licence

Licensed under the MIT license.

Author

Alexander Mac

0.1.2

7 months ago

0.1.1

1 year ago

0.1.0

1 year ago