Relational Access
database/sql as it actually behaves: sql.Open connects to nothing, Rows must be closed and checked, a Tx pins one connection, and the pool limits decide your tail latency.
part ofGo (Golang)overview, primer and where to startread it →on this pageshowhide
explore
- Prepared Statement Lifetime4 questions
- sql.DB as a Pool4 questions
- Query, Scan and Rows5 questions
- NULLs and Custom Scanners4 questions
- Transactions and Rollback4 questions
- Pool Sizing and Exhaustion5 questions
- Placeholders and Prepared Statements5 questions
questions
page 2 of 2For an ad-hoc reporting service, how much of the SQL text may be built from request input, and who owns that call?
level: principalimportance: nice to knowfreq 34%
basics
~20 sValues are always bound and structure comes only from a closed set of fragments in the source; only that set's width is negotiable. The service lead proposes it, the security reviewer owns the policy and can refuse.
showing 31–31 of 31