Use Transactions When Manually Accessing SQL Databases
Channel:
Subscribers:
8,130
Published on ● Video Link: https://www.youtube.com/watch?v=R9hM9PwxYbg
When connecting to a database manually to run commands it's important that those commands succeed so that we know what the state of the data is in. Transactions can help us. In this video I make the case for us to use SQL transactions when connecting manually for that protection.
This should work in all SQL databases that support transactions even though I'm showing Postgres using PSQL here.
Want to learn more? I have some courses you may be interested in at https://learning.brooksbuilds.com/