LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

typeorm

TypeORM database migration and entity CLI

TLDR

Initialize project
$ typeorm init
copy
Generate migration
$ typeorm migration:generate -n [MigrationName]
copy
Run migrations
$ typeorm migration:run
copy
Revert migration
$ typeorm migration:revert
copy
Create entity
$ typeorm entity:create -n [EntityName]
copy
Sync schema
$ typeorm schema:sync
copy

SYNOPSIS

typeorm command [-n name] [options]

DESCRIPTION

typeorm is the command-line interface for TypeORM, a TypeScript and JavaScript ORM that supports PostgreSQL, MySQL, SQLite, and other databases. It provides tools for managing database migrations, generating entity scaffolds, and synchronizing schema changes.Migrations track database schema changes as versioned files that can be applied and reverted. The migration:generate command automatically creates migration files by comparing the current entities to the database state. Schema sync provides a simpler alternative that directly updates the database to match entity definitions.The CLI also supports initializing new projects with boilerplate configuration and entity files.

PARAMETERS

init

Initialize project.
migration:generate
Generate migration.
migration:run
Run migrations.
migration:revert
Revert last.
entity:create
Create entity.
schema:sync
Sync database.

CAVEATS

TypeScript/Node.js. Config file needed. Database connection required.

HISTORY

TypeORM is an ORM for TypeScript and JavaScript, with the CLI providing database management operations.

SEE ALSO

prisma(1), knex(1), sequelize(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid