forked from nestjsx/crud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typeorm): create initial support for typeorm ^0.3.0 and nest ^9.0.0
TypeORM has been upgraded to ^0.3.0. Nest has been upgraded to ^9.0.0. Minor changes to TypeORM crud service related to unique select columns. Major changes to tests to support new DataSource configuration. BREAKING CHANGE: TypeORM v0.3.0 came with many breaking changes, please see their release notes for more details. https://github.com/typeorm/typeorm/releases/tag/0.3.0 re nestjsx#790
- Loading branch information
Showing
8 changed files
with
224 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { DataSource } from 'typeorm'; | ||
|
||
exports.default = new DataSource({ | ||
type: 'mysql', | ||
host: '127.0.0.1', | ||
port: 3316, | ||
username: 'nestjsx_crud', | ||
password: 'nestjsx_crud', | ||
database: 'nestjsx_crud', | ||
entities: ['./**/*.entity.ts'], | ||
migrationsTableName: 'orm_migrations', | ||
migrations: ['./seeds.ts'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { DataSource } from 'typeorm'; | ||
|
||
exports.default = new DataSource({ | ||
type: 'postgres', | ||
host: '127.0.0.1', | ||
port: 5455, | ||
username: 'root', | ||
password: 'root', | ||
database: 'nestjsx_crud', | ||
entities: ['./**/*.entity.ts'], | ||
migrationsTableName: 'orm_migrations', | ||
migrations: ['./seeds.ts'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.