mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 14:15:33 +02:00
typeorm: add page (#7474)
This commit is contained in:
parent
19302554fb
commit
3548b22322
1 changed files with 36 additions and 0 deletions
36
pages/common/typeorm.md
Normal file
36
pages/common/typeorm.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# typeorm
|
||||
|
||||
> A JavaScript ORM that can run on Node.js, browser, Cordova, Ionic, React Native, NativeScript, and Electron platforms.
|
||||
> More information: <https://typeorm.io/>.
|
||||
|
||||
- Generate a new initial TypeORM project structure:
|
||||
|
||||
`typeorm init`
|
||||
|
||||
- Create an empty migration file:
|
||||
|
||||
`typeorm migration:create --name {{migration_name}}`
|
||||
|
||||
- Create a migration file with the SQL statements to update the schema:
|
||||
|
||||
`typeorm migration:generate --name {{migration_name}}`
|
||||
|
||||
- Run all pending migrations:
|
||||
|
||||
`typeorm migration:run`
|
||||
|
||||
- Create a new entity file in a specific directory:
|
||||
|
||||
`typeorm entity:create --name {{entity}} --dir {{path/to/directory}}`
|
||||
|
||||
- Display the SQL statements to be executed by `typeorm schema:sync` on the default connection:
|
||||
|
||||
`typeorm schema:log`
|
||||
|
||||
- Execute a specific SQL statement on the default connection:
|
||||
|
||||
`typeorm query {{sql_sentence}}`
|
||||
|
||||
- Display help for a subcommand:
|
||||
|
||||
`typeorm {{subcommand}} --help`
|
Loading…
Add table
Reference in a new issue