toeg

0.1.2 • Public • Published

toeg

Generates entities for TypeORM from a databases.

Build Status License npm version

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

Readme

Keywords

none

Package Sidebar

Install

npm i toeg

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

72.5 kB

Total Files

24

Last publish

Collaborators

  • alexandermac