@universal-packages/core-typeorm v1.6.1
Core Typeorm
Typeorm universal-core module abstraction.
Install
npm install @universal-packages/core-typeorm
Initialization
ucore exec typeorm-task init
Global
Core expose DataSource
as the global subject if core modulesAsGlobals
config is true.
typeormSubject.manager.find()
core.coreModules.typeormModule.subject.manager.find()
Typeorm cli
To execute any of the Typeorm cli commands you can do it through the typeorm-task
.
Instead of
npm run typeorm <command> <options>
Do
ucore exec typeorm-task <command> <options>
All commands will behave the same, except that the data source always will be set from the TypeormModule that gets the configuration through universal-core config system.
Additional cli
Init
The init
will only populate your current project with the typeorm template.
ucore exec typeorm-task init
Crate DB
Creates the configured db using the right adapter. In non production environments it creates the analogous test dbs named your-development-db-name-<test>-<cpu-#>
ucore exec typeorm-task db:create
Drop DB
Drops the configured db using the right adapter. In non production environments it drops the analogous test dbs named your-development-db-name-<test>-<cpu-#>
ucore exec typeorm-task db:drop
Typescript
In order for typescript to see the global types you need to reference the types somewhere in your project, normally ./src/globals.d.ts
.
/// <reference types="@universal-packages/core-typeorm" />
This library is developed in TypeScript and shipped fully typed.
Contributing
The development of this library happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving this library.
License
28 days ago
28 days ago
28 days ago
29 days ago
30 days ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
4 months ago
5 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
7 months ago
7 months ago
7 months ago
8 months ago
7 months ago
7 months ago
6 months ago
7 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago