mikro-orm
TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases
Subcommands
Name | Description |
---|---|
cache:clear | Clear metadata cache |
cache:generate | Generate metadata cache for production |
generate-entities | Generate entities based on current database schema |
database:create | Create your database if it does not exist |
database:import | Imports the SQL file to the database |
seeder:run | Seed the database using the seeder class |
seeder:create | Create a new seeder class |
schema:create | Create database schema based on current metadata |
schema:drop | Drop database schema based on current metadata |
schema:update | Update database schema based on current metadata |
schema:fresh | Drop and recreate database schema based on current metadata |
migration:create | Create new migration with current schema diff |
migration:up | Migrate up to the latest version |
migration:down | Migrate one step down |
migration:list | List all executed migrations |
migration:pending | List all pending migrations |
migration:fresh | Clear the database and rerun all migrations |
debug | Debug CLI configuration |
Options
Name | Description |
---|---|
-v, --version | Show version number |
-h, --help | Show help |