0.1.2 • Published 2 years ago
toeg v0.1.2
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
- Add
toegto your project
npm i -D toegThen create a configuration file
.toeg.jsonusing.toeg-example.jsonas a base.And finally run
toeg:
node_modules/.bin/toegThe 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 --quietLicence
Licensed under the MIT license.
Author
Alexander Mac