We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5d03a0 commit be459f3Copy full SHA for be459f3
docs/pages/features/transactions.mdx
@@ -31,10 +31,10 @@ try {
31
const insertPhotoValues = [res.rows[0].id, 's3.bucket.foo']
32
await client.query(insertPhotoText, insertPhotoValues)
33
await client.query('COMMIT')
34
- client.release()
35
} catch (e) {
36
await client.query('ROLLBACK')
37
38
throw e
+} finally {
+ client.release()
39
}
40
```
0 commit comments