1.1.4 • Published 6 years ago

tormfig v1.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

This package is an alternative cli for the typeorm package.

The tormfig cli allows you to do the following:

  • schema:sync Synchronize db schema

Usage

$ npx tormfig -h
Usage: tormfig [options] [command]

Options:
  -V, --version                    output the version number
  -h, --help                       output usage information

Commands:
  schema:sync [options] <rootdir>  Synchronizes database schema. <rootdir> must be the directory that contains the entity, migration, subscriber directories. Source file inside the `entity` folder that contains the model definition must have the extension `.entity.ts`. For e.g. `User.entity.ts`
$ npx tormfig schema:sync -h
Usage: schema:sync [options] <rootdir>

Synchronizes database schema. <rootdir> must be the directory that contains the entity, migration, subscriber directories.

Options:
  -t, --type <type>          Specify database type. (default: "mysql")
  -H, --host <host>          Specify hostname of database. (default: "localhost")
  -P, --port <port>          Specify port of database. (default: 3306)
  -d, --database <db>        Specify name of database. Prompted if not specified.
  -u, --username <username>  Specify database user's username. (default: "root")
  -p, --password <password>  Specify database user's password. Prompted if not specified.
  -h, --help                 output usage information

<rootdir> must be the path to the directory which contains entity, migrations, and subscriber directories. Source file inside the entity folder that contains the model definition must have the extension .entity.ts. For e.g. User.entity.ts.

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago