Transactions
#448
-
How to do transactions with pg-typed? |
Beta Was this translation helpful? Give feedback.
Answered by
adelsz
Jun 6, 2022
Replies: 1 comment 1 reply
-
Transactions can be run as usual in node-postgres: await client.query('BEGIN')
const books = await findBookById.run({ bookId: 42 }, client);
await client.query('COMMIT') |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
adelsz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Transactions can be run as usual in node-postgres: