~/talk

Seamless Transactions: Golang’s Guide for Gen X, Y, & Z

Talkat Voxxed Days Thessaloniki 2024 · 2024-10-18..10-19· [go]
links:none on file
slides:none on file

Shows Go code that implements DB transactions with a concrete transfer coins between accounts example: repository + service layers, SQL updates, and a bank_records insert; introducing an injected error triggers transfer example rolled back on error so balances and records remain consistent. Presents a reusable ExecuteTransaction closure that begins, runs a passed function, commits on nil error and rollbacks otherwise. Advises keeping transactions scoped, stress testing, and compensating non-transactional stores.

AI-written summary · about

  1. 0:00Introduction
  2. 2:19Database transactions
  3. 4:17Money transfer scenario
  4. 7:29Go transactions
  5. 13:07Generic execution method
  6. 15:39Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.