typeorm
A JavaScript ORM that can run on Node.js, browser, Cordova, Ionic, React Native, NativeScript, and Electron platforms. More information: https://typeorm.io/docs/advanced-topics/using-cli/#initialize-a-new-typeorm-project.
- Generate a new initial TypeORM project structure:
typeorm init
- Create an empty migration file:
typeorm migration:create --name
- Create a migration file with the SQL statements to update the schema:
typeorm migration:generate --name
- Run all pending migrations:
typeorm migration:run
- Create a new entity file in a specific directory:
typeorm entity:create --name --dir
- Display the SQL statements to be executed by
typeorm schema:syncon the default connection:
typeorm schema:log
- Execute a specific SQL statement on the default connection:
typeorm query
- Display help for a subcommand:
typeorm --help
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
