Skip to content

Commit

Permalink
docs(reference:database): fix transaction-client docs minor error (ad…
Browse files Browse the repository at this point in the history
  • Loading branch information
guntribam committed May 13, 2021
1 parent 3b7324a commit 3f5c47c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/reference/database/transaction-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ You can access the transaction query client as follows:

```ts
import Database from '@ioc:Adonis/Lucid/Database'
await trx = await Database.transaction()
const trx = await Database.transaction()

// for a given connection
await trx = await Database
const trx = await Database
.connection('pg')
.transaction()
```
Expand Down

0 comments on commit 3f5c47c

Please sign in to comment.