Skip to content

Commit b23b881

Browse files
committed
chore: add typeorm 0.3.0 section
1 parent acf691d commit b23b881

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,6 @@ export class AppService {
112112
Same as before, do not use the TypeORM functions directly from the `dataSource` as that will give you the default connection to the database, not the wrapped instance.
113113

114114
For more specific examples, check the `test/nestjs/src`.
115+
116+
# Typeorm >v0.3.0
117+
Since typeorm v0.3.0, the Connection class has been replaced by DataSource. This module still uses Connection as its language which is also helpful now to differenciate between the actual database connection (typeorm DataSource) and RLS wrapper (RLSConnection). However, if you want to be on par with typeorm terminalogy, there is an alias for `RLSConnection` called `RLSDataSource`.

0 commit comments

Comments
 (0)