database/sql: The Bad, the Good and the Ugly — Building a Driver for YDB
summary
Describes the team’s experience implementing a Go database driver for YDB using the standard library package database/sql. Covers historical evolution of database/sql, incompatibilities and pitfalls encountered while supporting YDB (from Go v1.11 onward), and lessons learned in driver development and integration with the Go ecosystem.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:36Database/sql evolution
- 3:49YDB architecture
- 7:06SQL vs ODBC/JDBC
- 8:31Driver fundamentals
- 11:22Driver challenges
- 14:58Connection pooling
- 17:09Retry mechanisms
- 19:51Context in Go
- 24:29Named query params
- 27:39Context propagation
- 30:12Error handling limits
- 33:24Retry redesign
- 35:33Go 1.21 errors
- 36:57Query binding
- 38:22Final thoughts
- 39:28Q&A
