Skip to content

Commit 43337e3

Browse files
authored
docs: fix TypeORM Transactions section TypeORM links
1 parent 9c4ef36 commit 43337e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/techniques/sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ export class UsersModule {}
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

386-
There are many different strategies to handle [TypeORM transactions](https://typeorm.io/#/transactions). We recommend using the `QueryRunner` class because it gives full control over the transaction.
386+
There are many different strategies to handle [TypeORM transactions](https://typeorm.io/docs/advanced-topics/transactions/). We recommend using the `QueryRunner` class because it gives full control over the transaction.
387387

388388
First, we need to inject the `DataSource` object into a class in the normal way:
389389

@@ -423,7 +423,7 @@ async createMany(users: User[]) {
423423
424424
<app-banner-devtools></app-banner-devtools>
425425

426-
Alternatively, you can use the callback-style approach with the `transaction` method of the `DataSource` object ([read more](https://typeorm.io/#/transactions/creating-and-using-transactions)).
426+
Alternatively, you can use the callback-style approach with the `transaction` method of the `DataSource` object ([read more](https://typeorm.io/docs/advanced-topics/transactions/#creating-and-using-transactions)).
427427

428428
```typescript
429429
async createMany(users: User[]) {

0 commit comments

Comments
 (0)