database/sql Row Limits and Streaming Behavior in Go
Bounded Result Sets in Go The goal is to process a large database result set in Go without loading every row into memory, while keeping the amount of data fetched under an explicit limit. Go's standard library provides database/sql , but it does not define a portable pagination or row-limit abstraction; SQL syntax and cursor support depend on the database an