Skip to content

Commit eff5552

Browse files
Merge pull request #2515 from micalevisk/patch-5
docs(sql): drop mention on typeorm transaction decorators
2 parents 3e92f1b + 5f5b884 commit eff5552

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

content/techniques/sql.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ import { UsersService } from './users.service';
379379
export class UsersModule {}
380380
```
381381

382-
#### Transactions
382+
#### TypeORM Transactions
383383

384384
A database transaction symbolizes a unit of work performed within a database management system against a database, and treated in a coherent and reliable way independent of other transactions. A transaction generally represents any change in a database ([learn more](https://en.wikipedia.org/wiki/Database_transaction)).
385385

@@ -432,8 +432,6 @@ async createMany(users: User[]) {
432432
}
433433
```
434434

435-
Using decorators to control the transaction (`@Transaction()` and `@TransactionManager()`) is not recommended.
436-
437435
<app-banner-shop></app-banner-shop>
438436

439437
#### Subscribers
@@ -1044,7 +1042,7 @@ With that option specified, every model registered through the `forFeature()` me
10441042

10451043
> warning **Warning** Note that models that aren't registered through the `forFeature()` method, but are only referenced from the model (via an association), won't be included.
10461044
1047-
#### Transactions
1045+
#### Sequelize Transactions
10481046

10491047
A database transaction symbolizes a unit of work performed within a database management system against a database, and treated in a coherent and reliable way independent of other transactions. A transaction generally represents any change in a database ([learn more](https://en.wikipedia.org/wiki/Database_transaction)).
10501048

0 commit comments

Comments
 (0)