~/talk

Building Database Applications with Database/SQL

Talkat GopherCon 2014 · 2014-04-24..04-26· [databases, go]
slides:none on file

Demonstrates using Go's database/sql with MySQL and gives concrete rules: open creates a long‑lived DB object, use exec for non‑row commands and close rows promptly to avoid leaking connections, bind a connection with a transaction (TX) when you need session state, watch for a surprising ten‑retry loop on bad connections, hit a 16k prepared‑statement limit under high concurrency, and notes driver quirks like unsigned uint64 handling and a DBControl cap tool the team built and uses.

AI-written summary · about

  1. 0:00Introduction
  2. 1:15Go database/sql resources
  3. 2:17Skepticism and rediscovery
  4. 5:27Hello world setup
  5. 8:35Querying single rows
  6. 10:41Parameterized queries
  7. 12:28Handling result sets
  8. 15:59Explicit statement preparing
  9. 18:30Non-query operations with exec
  10. 19:54Connection pool management
  11. 23:44Resource leaks and cleanup
  12. 24:50Transactions and connection state
  13. 27:18Retry behavior in database/sql
  14. 29:05NULL values and custom types
  15. 30:53Additional resources
  16. 31:15Q&A
~/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.